Skip to content

Commit 31c5e7b

Browse files
authored
Merge pull request #26826 from bridgetkromhout/1.21-563
Promote IPv4/IPv6 dual-stack support to Beta
2 parents 0b32f89 + 99e46a5 commit 31c5e7b

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

content/en/docs/concepts/services-networking/dual-stack.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ weight: 70
1616

1717
<!-- overview -->
1818

19-
{{< feature-state for_k8s_version="v1.16" state="alpha" >}}
19+
{{< feature-state for_k8s_version="v1.21" state="beta" >}}
2020

21-
IPv4/IPv6 dual-stack enables the allocation of both IPv4 and IPv6 addresses to {{< glossary_tooltip text="Pods" term_id="pod" >}} and {{< glossary_tooltip text="Services" term_id="service" >}}.
21+
IPv4/IPv6 dual-stack networking enables the allocation of both IPv4 and IPv6 addresses to {{< glossary_tooltip text="Pods" term_id="pod" >}} and {{< glossary_tooltip text="Services" term_id="service" >}}.
2222

23-
If you enable IPv4/IPv6 dual-stack networking for your Kubernetes cluster, the cluster will support the simultaneous assignment of both IPv4 and IPv6 addresses.
23+
IPv4/IPv6 dual-stack networking is enabled by default for your Kubernetes cluster starting in 1.21, allowing the simultaneous assignment of both IPv4 and IPv6 addresses.
2424

2525

2626

2727
<!-- body -->
2828

2929
## Supported Features
3030

31-
Enabling IPv4/IPv6 dual-stack on your Kubernetes cluster provides the following features:
31+
IPv4/IPv6 dual-stack on your Kubernetes cluster provides the following features:
3232

3333
* Dual-stack Pod networking (a single IPv4 and IPv6 address assignment per Pod)
3434
* IPv4 and IPv6 enabled Services
@@ -45,34 +45,34 @@ The following prerequisites are needed in order to utilize IPv4/IPv6 dual-stack
4545
* Provider support for dual-stack networking (Cloud provider or otherwise must be able to provide Kubernetes nodes with routable IPv4/IPv6 network interfaces)
4646
* A network plugin that supports dual-stack (such as Kubenet or Calico)
4747

48-
## Enable IPv4/IPv6 dual-stack
48+
## Configure IPv4/IPv6 dual-stack
4949

50-
To enable IPv4/IPv6 dual-stack, enable the `IPv6DualStack` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) for the relevant components of your cluster, and set dual-stack cluster network assignments:
50+
To use IPv4/IPv6 dual-stack, ensure the `IPv6DualStack` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled for the relevant components of your cluster. (Starting in 1.21, IPv4/IPv6 dual-stack defaults to enabled.)
51+
52+
To configure IPv4/IPv6 dual-stack, set dual-stack cluster network assignments:
5153

5254
* kube-apiserver:
53-
* `--feature-gates="IPv6DualStack=true"`
5455
* `--service-cluster-ip-range=<IPv4 CIDR>,<IPv6 CIDR>`
5556
* kube-controller-manager:
56-
* `--feature-gates="IPv6DualStack=true"`
5757
* `--cluster-cidr=<IPv4 CIDR>,<IPv6 CIDR>`
5858
* `--service-cluster-ip-range=<IPv4 CIDR>,<IPv6 CIDR>`
5959
* `--node-cidr-mask-size-ipv4|--node-cidr-mask-size-ipv6` defaults to /24 for IPv4 and /64 for IPv6
60-
* kubelet:
61-
* `--feature-gates="IPv6DualStack=true"`
6260
* kube-proxy:
6361
* `--cluster-cidr=<IPv4 CIDR>,<IPv6 CIDR>`
64-
* `--feature-gates="IPv6DualStack=true"`
6562

6663
{{< note >}}
6764
An example of an IPv4 CIDR: `10.244.0.0/16` (though you would supply your own address range)
6865

6966
An example of an IPv6 CIDR: `fdXY:IJKL:MNOP:15::/64` (this shows the format but is not a valid address - see [RFC 4193](https://tools.ietf.org/html/rfc4193))
7067

68+
Starting in 1.21, IPv4/IPv6 dual-stack defaults to enabled.
69+
You can disable it when necessary by specifying `--feature-gates="IPv6DualStack=false"`
70+
on the kube-apiserver, kube-controller-manager, kubelet, and kube-proxy command line.
7171
{{< /note >}}
7272

7373
## Services
7474

75-
If your cluster has dual-stack enabled, you can create {{< glossary_tooltip text="Services" term_id="service" >}} which can use IPv4, IPv6, or both.
75+
You can create {{< glossary_tooltip text="Services" term_id="service" >}} which can use IPv4, IPv6, or both.
7676

7777
The address family of a Service defaults to the address family of the first service cluster IP range (configured via the `--service-cluster-ip-range` flag to the kube-apiserver).
7878

@@ -81,11 +81,9 @@ set the `.spec.ipFamilyPolicy` field to one of the following values:
8181

8282
* `SingleStack`: Single-stack service. The control plane allocates a cluster IP for the Service, using the first configured service cluster IP range.
8383
* `PreferDualStack`:
84-
* Only used if the cluster has dual-stack enabled. Allocates IPv4 and IPv6 cluster IPs for the Service
85-
* If the cluster does not have dual-stack enabled, this setting follows the same behavior as `SingleStack`.
84+
* Allocates IPv4 and IPv6 cluster IPs for the Service. (If the cluster has `--feature-gates="IPv6DualStack=false"`, this setting follows the same behavior as `SingleStack`.)
8685
* `RequireDualStack`: Allocates Service `.spec.ClusterIPs` from both IPv4 and IPv6 address ranges.
8786
* Selects the `.spec.ClusterIP` from the list of `.spec.ClusterIPs` based on the address family of the first element in the `.spec.ipFamilies` array.
88-
* The cluster must have dual-stack networking configured.
8987

9088
If you would like to define which IP family to use for single stack or define the order of IP families for dual-stack, you can choose the address families by setting an optional field, `.spec.ipFamilies`, on the Service.
9189

@@ -126,7 +124,7 @@ These examples demonstrate the behavior of various dual-stack Service configurat
126124

127125
#### Dual-stack defaults on existing Services
128126

129-
These examples demonstrate the default behavior when dual-stack is newly enabled on a cluster where Services already exist.
127+
These examples demonstrate the default behavior when dual-stack is newly enabled on a cluster where Services already exist. (Upgrading an existing cluster to 1.21 will enable dual-stack unless `--feature-gates="IPv6DualStack=false"` is set.)
130128

131129
1. When dual-stack is enabled on a cluster, existing Services (whether `IPv4` or `IPv6`) are configured by the control plane to set `.spec.ipFamilyPolicy` to `SingleStack` and set `.spec.ipFamilies` to the address family of the existing Service. The existing Service cluster IP will be stored in `.spec.ClusterIPs`.
132130

content/en/docs/reference/command-line-tools-reference/feature-gates.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ different Kubernetes components.
123123
| `HPAScaleToZero` | `false` | Alpha | 1.16 | |
124124
| `HugePageStorageMediumSize` | `false` | Alpha | 1.18 | 1.18 |
125125
| `HugePageStorageMediumSize` | `true` | Beta | 1.19 | |
126-
| `IPv6DualStack` | `false` | Alpha | 1.15 | |
126+
| `IPv6DualStack` | `false` | Alpha | 1.15 | 1.20 |
127+
| `IPv6DualStack` | `true` | Beta | 1.21 | |
127128
| `KubeletCredentialProviders` | `false` | Alpha | 1.20 | |
128129
| `KubeletPodResources` | `true` | Alpha | 1.13 | 1.14 |
129130
| `KubeletPodResources` | `true` | Beta | 1.15 | |

0 commit comments

Comments
 (0)