-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkubeadm-config.yaml
59 lines (59 loc) · 1.32 KB
/
kubeadm-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
apiVersion: kubeadm.k8s.io/v1beta2
kind: InitConfiguration
bootstrapTokens:
- token: "9a08jv.c0izixklcxtmnze7"
description: "kubeadm bootstrap token"
ttl: "24h"
- token: "783bde.3f89s0fje9f38fhf"
description: "another bootstrap token"
usages:
- authentication
- signing
groups:
- system:bootstrappers:kubeadm:default-node-token
nodeRegistration:
name: "HOSTNAME"
criSocket: "/var/run/dockershim.sock"
localAPIEndpoint:
advertiseAddress: "IPADDRESS"
bindPort: 6443
---
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
etcd:
# one of local or external
local:
dataDir: "/var/lib/etcd"
extraArgs:
serverCertSANs:
- "IPADDRESS"
- "HOSTNAME"
peerCertSANs:
- "IPADDRESS"
networking:
serviceSubnet: "10.96.0.0/12"
podSubnet: "PODSUBNET"
dnsDomain: "cluster.local"
kubernetesVersion: "v1.21.1"
apiServer:
extraArgs:
authorization-mode: "Node,RBAC"
certSANs:
- "IPADDRESS"
- "HOSTNAME"
timeoutForControlPlane: 4m0s
controllerManager: {}
scheduler: {}
certificatesDir: "/etc/kubernetes/pki"
imageRepository: "k8s.gcr.io"
clusterName: "kubernetes"
---
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
serverTLSBootstrap: true
---
apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
mode: "ipvs"
ipvs:
strictARP: true