blob: 07c4dddd706c3c5b3e7526e3a885a5bd9d79a9ec (
plain) (
blame)
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
|
{# https://godoc.org/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta1 #}
apiVersion: kubeadm.k8s.io/v1beta1
kind: ClusterConfiguration
kubernetesVersion: v{{ kubernetes.version }}
clusterName: {{ kubernetes.cluster_name }}
certificatesDir: /etc/kubernetes/pki
{% if kubernetes.api_advertise_ip %}
controlPlaneEndpoint: "{{ kubernetes.api_advertise_ip }}:6443"
{% endif %}
imageRepository: k8s.gcr.io
networking:
dnsDomain: cluster.local
podSubnet: {{ kubernetes.pod_ip_range }}
serviceSubnet: {{ kubernetes.service_ip_range }}
etcd:
local:
dataDir: /var/lib/etcd
apiServer:
{% if kubernetes.api_extra_sans | length > 0 %}
certSANs:
{% for san in kubernetes.api_extra_sans %}
- {{ san }}
{% endfor %}
{% endif %}
extraArgs:
{% if kubernetes.api_advertise_ip %}
advertise-address: {{ kubernetes.api_advertise_ip }}
{% endif %}
authorization-mode: Node,RBAC
timeoutForControlPlane: 4m0s
controllerManager: {}
scheduler: {}
dns:
type: CoreDNS
|