Import Ansible playbook for bootstrap k8s cluster

This commit is contained in:
D4rk4 2020-07-31 03:39:43 +02:00
parent 5068274017
commit a6706498b6
17 changed files with 230 additions and 3 deletions

View 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: {}