-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkubeadm_config.yaml
29 lines (29 loc) · 1.07 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
apiVersion: kubeadm.k8s.io/v1alpha1
kind: MasterConfiguration
api:
advertiseAddress: {{ ansible_default_ipv4.address }}
networking:
serviceSubnet: 10.40.41.0/16
podSubnet: 10.41.42.0/16
kubernetesVersion: 1.9.3
nodeName: {{ ansible_hostname }}
etcd:
endpoints:
- https://{{ hostvars[groups['k8s-masters'][0]].ansible_default_ipv4.address }}:2379
- https://{{ hostvars[groups['k8s-masters'][1]].ansible_default_ipv4.address }}:2379
- https://{{ hostvars[groups['k8s-masters'][2]].ansible_default_ipv4.address }}:2379
caFile: /etc/kubernetes/pki/etcd/ca.pem
certFile: /etc/kubernetes/pki/etcd/client.pem
keyFile: /etc/kubernetes/pki/etcd/client-key.pem
kubeProxy:
config:
mode: iptables
clientConnection.kubeconfig: /etc/kubernetes/admin.conf
clusterCIDR: 10.40.41.0/16
apiServerCertSANs:
- "{{ hostvars[groups['k8s-masters'][0]].ansible_default_ipv4.address }}"
- "{{ hostvars[groups['k8s-masters'][1]].ansible_default_ipv4.address }}"
- "{{ hostvars[groups['k8s-masters'][2]].ansible_default_ipv4.address }}"
- "127.0.0.1"
apiServerExtraArgs:
apiserver-count: "3"