Import Ansible playbook for bootstrap k8s cluster
This commit is contained in:
parent
5068274017
commit
a6706498b6
17 changed files with 230 additions and 3 deletions
25
contrib/ansible/roles/init-cluster/templates/kubeadm.conf.j2
Normal file
25
contrib/ansible/roles/init-cluster/templates/kubeadm.conf.j2
Normal file
|
@ -0,0 +1,25 @@
|
|||
apiVersion: kubelet.config.k8s.io/v1beta1
|
||||
kind: KubeletConfiguration
|
||||
cgroupDriver: systemd
|
||||
---
|
||||
apiVersion: kubeadm.k8s.io/v1beta2
|
||||
kind: InitConfiguration
|
||||
nodeRegistration:
|
||||
---
|
||||
apiVersion: kubeadm.k8s.io/v1beta2
|
||||
kind: ClusterConfiguration
|
||||
kubernetesVersion: {{ k8s_version }}
|
||||
certificatesDir: /etc/kubernetes/pki
|
||||
clusterName: {{ k8s_cluster_name }}
|
||||
controlPlaneEndpoint: {{ k8s_controlplane_address }}
|
||||
dns:
|
||||
type: CoreDNS
|
||||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/etcd
|
||||
imageRepository: k8s.gcr.io
|
||||
networking:
|
||||
dnsDomain: {{ k8s_domain }}
|
||||
podSubnet: {{ k8s_pod_network }}
|
||||
serviceSubnet: {{ k8s_service_network }}
|
||||
scheduler: {}
|
Loading…
Add table
Add a link
Reference in a new issue