-
Notifications
You must be signed in to change notification settings - Fork 45
/
kubeadm-config-docker.yml
86 lines (86 loc) · 2.11 KB
/
kubeadm-config-docker.yml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
apiVersion: kubeadm.k8s.io/v1beta2
bootstrapTokens:
- groups:
- system:bootstrappers:kubeadm:default-node-token
token: abcdef.0123456789abcdef
ttl: 24h0m0s
usages:
- signing
- authentication
kind: InitConfiguration
localAPIEndpoint:
advertiseAddress: ${master1_ip}
bindPort: 6443
nodeRegistration:
criSocket: /var/run/dockershim.sock
name: master1
taints:
- effect: NoSchedule
key: node-role.kubernetes.io/master
---
apiServer:
extraArgs:
authorization-mode: "Node,RBAC"
timeoutForControlPlane: 4m0s
certSANs:
- "${vip_api}"
- "${master1_ip}"
- "${master2_ip}"
- "${master3_ip}"
- "${vip_api_name}"
- "vip"
- "${master1_name}"
- "${master2_name}"
- "${master3_name}"
- "vip.${domain_name}"
- "${vip_api_name}.${domain_name}"
- "${master1_name}.${domain_name}"
- "${master2_name}.${domain_name}"
- "${master3_name}.${domain_name}"
apiVersion: kubeadm.k8s.io/v1beta2
certificatesDir: /etc/kubernetes/pki
clusterName: kubernetes
controllerManager: {}
dns:
type: CoreDNS
etcd:
local:
imageRepository: "quay.io/coreos"
imageTag: "v3.5.4"
dataDir: "/var/lib/etcd"
serverCertSANs:
- "${vip_api}"
- "${master1_ip}"
- "${master2_ip}"
- "${master3_ip}"
- "${vip_api_name}"
- "vip"
- "${master1_name}"
- "${master2_name}"
- "${master3_name}"
- "${vip_api_name}.${domain_name}"
- "${master1_name}.${domain_name}"
- "${master2_name}.${domain_name}"
- "${master3_name}.${domain_name}"
peerCertSANs:
- "${vip_api}"
- "${master1_ip}"
- "${master2_ip}"
- "${master3_ip}"
- "${vip_api_name}"
- "vip"
- "${master1_name}"
- "${master2_name}"
- "${master3_name}"
- "${vip_api_name}.${domain_name}"
- "${master1_name}.${domain_name}"
- "${master2_name}.${domain_name}"
- "${master3_name}.${domain_name}"
#kubernetesVersion: "v1.21.1"
imageRepository: "k8s.gcr.io"
useHyperKubeImage: false
kind: ClusterConfiguration
controlPlaneEndpoint: "vip.${domain_name}:6443"
networking:
serviceSubnet: "10.96.0.0/12"
podSubnet: "172.124.0.0/17"