Skip to content

Commit 54bebd3

Browse files
authored
Merge pull request #28872 from tengqm/kubeadm-config-v1beta3
Readd kubeadm config v1beta3 reference for 1.22
2 parents 09e92f3 + 500745d commit 54bebd3

File tree

3 files changed

+1489
-72
lines changed

3 files changed

+1489
-72
lines changed

content/en/docs/reference/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ operator to use or manage a cluster.
8282
## Config API for kubeadm
8383

8484
* [v1beta2](/docs/reference/config-api/kubeadm-config.v1beta2/)
85+
* [v1beta3](/docs/reference/config-api/kubeadm-config.v1beta3/)
8586

8687
## Design Docs
8788

content/en/docs/reference/config-api/kubeadm-config.v1beta2.md

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ The ClusterConfiguration type should be used to configure cluster-wide settings,
116116
including settings for:
117117
118118
- Networking, that holds configuration for the networking topology of the cluster; use it e.g. to customize
119-
node subnet or services subnet.
119+
pod subnet or services subnet.
120120
- Etcd configurations; use it e.g. to customize the local etcd or to configure the API server
121121
for using an external etcd cluster.
122122
- kube-apiserver, kube-scheduler, kube-controller-manager configurations; use it to customize control-plane
@@ -164,79 +164,79 @@ bootstrapTokens:
164164
groups:
165165
- system:bootstrappers:kubeadm:default-node-token
166166
nodeRegistration:
167-
name: "ec2-10-100-0-1"
168-
criSocket: "/var/run/dockershim.sock"
169-
taints:
170-
- key: "kubeadmNode"
171-
value: "master"
172-
effect: "NoSchedule"
173-
kubeletExtraArgs:
174-
cgroup-driver: "cgroupfs"
175-
ignorePreflightErrors:
176-
- IsPrivilegedUser
167+
name: "ec2-10-100-0-1"
168+
criSocket: "/var/run/dockershim.sock"
169+
taints:
170+
- key: "kubeadmNode"
171+
value: "master"
172+
effect: "NoSchedule"
173+
kubeletExtraArgs:
174+
cgroup-driver: "cgroupfs"
175+
ignorePreflightErrors:
176+
- IsPrivilegedUser
177177
localAPIEndpoint:
178-
advertiseAddress: "10.100.0.1"
179-
bindPort: 6443
178+
advertiseAddress: "10.100.0.1"
179+
bindPort: 6443
180180
certificateKey: "e6a2eb8581237ab72a4f494f30285ec12a9694d750b9785706a83bfcbbbd2204"
181181
---
182182
apiVersion: kubeadm.k8s.io/v1beta2
183183
kind: ClusterConfiguration
184184
etcd:
185185
# one of local or external
186186
local:
187-
imageRepository: "k8s.gcr.io"
188-
imageTag: "3.2.24"
189-
dataDir: "/var/lib/etcd"
190-
extraArgs:
191-
listen-client-urls: "http://10.100.0.1:2379"
192-
serverCertSANs:
193-
- "ec2-10-100-0-1.compute-1.amazonaws.com"
194-
peerCertSANs:
195-
- "10.100.0.1"
196-
# external:
197-
# endpoints:
198-
# - "10.100.0.1:2379"
199-
# - "10.100.0.2:2379"
200-
# caFile: "/etcd/kubernetes/pki/etcd/etcd-ca.crt"
201-
# certFile: "/etcd/kubernetes/pki/etcd/etcd.crt"
202-
# keyFile: "/etcd/kubernetes/pki/etcd/etcd.key"
203-
networking:
204-
serviceSubnet: "10.96.0.0/12"
205-
podSubnet: "10.100.0.1/24"
206-
dnsDomain: "cluster.local"
207-
kubernetesVersion: "v1.12.0"
208-
controlPlaneEndpoint: "10.100.0.1:6443"
209-
apiServer:
210-
extraArgs:
211-
authorization-mode: "Node,RBAC"
212-
extraVolumes:
213-
- name: "some-volume"
214-
hostPath: "/etc/some-path"
215-
mountPath: "/etc/some-pod-path"
216-
readOnly: false
217-
pathType: File
218-
certSANs:
219-
- "10.100.1.1"
220-
- "ec2-10-100-0-1.compute-1.amazonaws.com"
221-
timeoutForControlPlane: 4m0s
222-
controllerManager:
223-
extraArgs:
224-
"node-cidr-mask-size": "20"
225-
extraVolumes:
226-
- name: "some-volume"
227-
hostPath: "/etc/some-path"
228-
mountPath: "/etc/some-pod-path"
229-
readOnly: false
230-
pathType: File
231-
scheduler:
232-
extraArgs:
233-
address: "10.100.0.1"
234-
extraVolumes:
235-
- name: "some-volume"
236-
hostPath: "/etc/some-path"
237-
mountPath: "/etc/some-pod-path"
238-
readOnly: false
239-
pathType: File
187+
imageRepository: "k8s.gcr.io"
188+
imageTag: "3.2.24"
189+
dataDir: "/var/lib/etcd"
190+
extraArgs:
191+
listen-client-urls: "http://10.100.0.1:2379"
192+
serverCertSANs:
193+
- "ec2-10-100-0-1.compute-1.amazonaws.com"
194+
peerCertSANs:
195+
- "10.100.0.1"
196+
# external:
197+
# endpoints:
198+
# - "10.100.0.1:2379"
199+
# - "10.100.0.2:2379"
200+
# caFile: "/etcd/kubernetes/pki/etcd/etcd-ca.crt"
201+
# certFile: "/etcd/kubernetes/pki/etcd/etcd.crt"
202+
# keyFile: "/etcd/kubernetes/pki/etcd/etcd.key"
203+
networking:
204+
serviceSubnet: "10.96.0.0/12"
205+
podSubnet: "10.100.0.1/24"
206+
dnsDomain: "cluster.local"
207+
kubernetesVersion: "v1.12.0"
208+
controlPlaneEndpoint: "10.100.0.1:6443"
209+
apiServer:
210+
extraArgs:
211+
authorization-mode: "Node,RBAC"
212+
extraVolumes:
213+
- name: "some-volume"
214+
hostPath: "/etc/some-path"
215+
mountPath: "/etc/some-pod-path"
216+
readOnly: false
217+
pathType: File
218+
certSANs:
219+
- "10.100.1.1"
220+
- "ec2-10-100-0-1.compute-1.amazonaws.com"
221+
timeoutForControlPlane: 4m0s
222+
controllerManager:
223+
extraArgs:
224+
"node-cidr-mask-size": "20"
225+
extraVolumes:
226+
- name: "some-volume"
227+
hostPath: "/etc/some-path"
228+
mountPath: "/etc/some-pod-path"
229+
readOnly: false
230+
pathType: File
231+
scheduler:
232+
extraArgs:
233+
address: "10.100.0.1"
234+
extraVolumes:
235+
- name: "some-volume"
236+
hostPath: "/etc/some-path"
237+
mountPath: "/etc/some-pod-path"
238+
readOnly: false
239+
pathType: File
240240
certificatesDir: "/etc/kubernetes/pki"
241241
imageRepository: "k8s.gcr.io"
242242
useHyperKubeImage: false
@@ -663,7 +663,7 @@ APIServer holds settings necessary for API server deployments in the cluster
663663

664664

665665
<tr><td><code>timeoutForControlPlane</code> <B>[Required]</B><br/>
666-
<code>invalid type</code>
666+
<a href="https://godoc.org/k8s.io/apimachinery/pkg/apis/meta/v1#Duration"><code>meta/v1.Duration</code></a>
667667
</td>
668668
<td>
669669
`timeoutForControlPlane` controls the timeout that we use for API server to appear</td>
@@ -712,7 +712,7 @@ for, so other administrators can know its purpose.</td>
712712

713713

714714
<tr><td><code>ttl</code> <B>[Required]</B><br/>
715-
<code>invalid type</code>
715+
<a href="https://godoc.org/k8s.io/apimachinery/pkg/apis/meta/v1#Duration"><code>meta/v1.Duration</code></a>
716716
</td>
717717
<td>
718718
`ttl` defines the time to live for this token. Defaults to "24h".
@@ -721,7 +721,7 @@ for, so other administrators can know its purpose.</td>
721721

722722

723723
<tr><td><code>expires</code> <B>[Required]</B><br/>
724-
<code>invalid type</code>
724+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#time-v1-meta"><code>meta/v1.Time</code></a>
725725
</td>
726726
<td>
727727
`expires` specifies the timestamp when this token expires. Defaults to being set
@@ -1004,7 +1004,7 @@ not contain any other authentication information</td>
10041004

10051005

10061006
<tr><td><code>timeout</code> <B>[Required]</B><br/>
1007-
<code>invalid type</code>
1007+
<a href="https://godoc.org/k8s.io/apimachinery/pkg/apis/meta/v1#Duration"><code>meta/v1.Duration</code></a>
10081008
</td>
10091009
<td>
10101010
`timeout` modifies the discovery timeout.</td>
@@ -1199,7 +1199,7 @@ HostPathMount contains elements describing volumes that are mounted from the hos
11991199

12001200

12011201
<tr><td><code>pathType</code> <B>[Required]</B><br/>
1202-
<code>invalid type</code>
1202+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#hostpathtype-v1-core"><code>core/v1.HostPathType</code></a>
12031203
</td>
12041204
<td>
12051205
`pathType` is the type of the `hostPath` volume.</td>
@@ -1451,7 +1451,7 @@ annotated to the Node API object, for later re-use.</td>
14511451

14521452

14531453
<tr><td><code>taints</code> <B>[Required]</B><br/>
1454-
<code>[]invalid type</code>
1454+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#taint-v1-core"><code>[]core/v1.Taint</code></a>
14551455
</td>
14561456
<td>
14571457
`taints` specifies the taints the Node API object should be registered with. If

0 commit comments

Comments
 (0)