File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
content/en/docs/tasks/network Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,9 @@ This document shares how to extend the existing Service IP range assigned to a c
24
24
## API
25
25
26
26
Kubernetes clusters with kube-apiservers that have enabled the ` MultiCIDRServiceAllocator `
27
- [ feature gate] ( /docs/reference/command-line-tools-reference/feature-gates/ ) and the ` networking.k8s.io/v1alpha1 ` API,
28
- will create a new ServiceCIDR object that takes the well-known name ` kubernetes ` , and that uses an IP address range
27
+ [ feature gate] ( /docs/reference/command-line-tools-reference/feature-gates/ ) and have the ` networking.k8s.io/v1beta1 `
28
+ API group active,
29
+ will create a ServiceCIDR object that takes the well-known name ` kubernetes ` , and that specifies an IP address range
29
30
based on the value of the ` --service-cluster-ip-range ` command line argument to kube-apiserver.
30
31
31
32
``` sh
@@ -94,7 +95,7 @@ that extends or adds new IP address ranges.
94
95
95
96
``` sh
96
97
cat < EOF | kubectl apply -f -
97
- apiVersion: networking.k8s.io/v1alpha1
98
+ apiVersion: networking.k8s.io/v1beta1
98
99
kind: ServiceCIDR
99
100
metadata:
100
101
name: newcidr1
@@ -136,7 +137,7 @@ Kubernetes uses a finalizer on the ServiceCIDR to track this dependent relations
136
137
kubectl get servicecidr newcidr1 -o yaml
137
138
```
138
139
```
139
- apiVersion: networking.k8s.io/v1alpha1
140
+ apiVersion: networking.k8s.io/v1beta1
140
141
kind: ServiceCIDR
141
142
metadata:
142
143
creationTimestamp: "2023-10-12T15:11:07Z"
You can’t perform that action at this time.
0 commit comments