You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/concepts/services-networking/dual-stack.md
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ set the `.spec.ipFamilyPolicy` field to one of the following values:
93
93
using the first configured service cluster IP range.
94
94
*`PreferDualStack`: Allocates both IPv4 and IPv6 cluster IPs for the Service when dual-stack is enabled. If dual-stack is not enabled or supported, it falls back to single-stack behavior.
95
95
*`RequireDualStack`: Allocates Service `.spec.clusterIPs` from both IPv4 and IPv6 address ranges when dual-stack is enabled. If dual-stack is not enabled or supported, the Service API object creation fails.
96
-
* Selects the `.spec.ClusterIP` from the list of `.spec.ClusterIPs` based on the address family
96
+
* Selects the `.spec.clusterIP` from the list of `.spec.clusterIPs` based on the address family
97
97
of the first element in the `.spec.ipFamilies` array.
98
98
99
99
If you would like to define which IP family to use for single stack or define the order of IP
@@ -112,7 +112,7 @@ You can set `.spec.ipFamilies` to any of the following array values:
112
112
-`["IPv4","IPv6"]` (dual stack)
113
113
-`["IPv6","IPv4"]` (dual stack)
114
114
115
-
The first family you list is used for the legacy `.spec.ClusterIP` field.
115
+
The first family you list is used for the legacy `.spec.clusterIP` field.
116
116
117
117
### Dual-stack Service configuration scenarios
118
118
@@ -132,13 +132,13 @@ These examples demonstrate the behavior of various dual-stack Service configurat
132
132
1. This Service specification explicitly defines `PreferDualStack` in `.spec.ipFamilyPolicy`. When
133
133
you create this Service on a dual-stack cluster, Kubernetes assigns both IPv4 and IPv6
134
134
addresses for the service. The control plane updates the `.spec` for the Service to record the IP
135
-
address assignments. The field `.spec.ClusterIPs` is the primary field, and contains both assigned
136
-
IP addresses; `.spec.ClusterIP` is a secondary field with its value calculated from
137
-
`.spec.ClusterIPs`.
135
+
address assignments. The field `.spec.clusterIPs` is the primary field, and contains both assigned
136
+
IP addresses; `.spec.clusterIP` is a secondary field with its value calculated from
137
+
`.spec.clusterIPs`.
138
138
139
-
* For the `.spec.ClusterIP` field, the control plane records the IP address that is from the
139
+
* For the `.spec.clusterIP` field, the control plane records the IP address that is from the
140
140
same address family as the first service cluster IP range.
141
-
* On a single-stack cluster, the `.spec.ClusterIPs` and `.spec.ClusterIP` fields both only list
141
+
* On a single-stack cluster, the `.spec.clusterIPs` and `.spec.clusterIP` fields both only list
142
142
one address.
143
143
* On a cluster with dual-stack enabled, specifying `RequireDualStack` in `.spec.ipFamilyPolicy`
144
144
behaves the same as `PreferDualStack`.
@@ -147,8 +147,8 @@ These examples demonstrate the behavior of various dual-stack Service configurat
147
147
148
148
1. This Service specification explicitly defines `IPv6` and `IPv4` in `.spec.ipFamilies` as well
149
149
as defining `PreferDualStack` in `.spec.ipFamilyPolicy`. When Kubernetes assigns an IPv6 and
150
-
IPv4 address in `.spec.ClusterIPs`, `.spec.ClusterIP` is set to the IPv6 address because that is
151
-
the first element in the `.spec.ClusterIPs` array, overriding the default.
150
+
IPv4 address in `.spec.clusterIPs`, `.spec.clusterIP` is set to the IPv6 address because that is
151
+
the first element in the `.spec.clusterIPs` array, overriding the default.
0 commit comments