summaryrefslogtreecommitdiffstats
path: root/k8s_cluster/k8s/controller1.yml
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2020-12-16 21:24:26 +0100
committerDavid Runge <dave@sleepmap.de>2020-12-16 21:24:26 +0100
commit0543e3011817211445da32afe1eaa60ded44c673 (patch)
tree1ff4a268a70f0474a827b28ebbfe1de037138a97 /k8s_cluster/k8s/controller1.yml
downloadterraform-0543e3011817211445da32afe1eaa60ded44c673.tar.gz
terraform-0543e3011817211445da32afe1eaa60ded44c673.tar.bz2
terraform-0543e3011817211445da32afe1eaa60ded44c673.tar.xz
terraform-0543e3011817211445da32afe1eaa60ded44c673.zip
Add kubernetes example using libvirt providerHEADmaster
k8s_cluster/*: Add a terraform-provider-libvirt based examples to semi-automatically create a k8s cluster for testing.
Diffstat (limited to 'k8s_cluster/k8s/controller1.yml')
-rw-r--r--k8s_cluster/k8s/controller1.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/k8s_cluster/k8s/controller1.yml b/k8s_cluster/k8s/controller1.yml
new file mode 100644
index 0000000..c99129b
--- /dev/null
+++ b/k8s_cluster/k8s/controller1.yml
@@ -0,0 +1,28 @@
+---
+# https://godoc.org/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta2#JoinConfiguration
+apiVersion: kubeadm.k8s.io/v1beta2
+kind: JoinConfiguration
+nodeRegistration:
+ name: controller1
+ criSocket: /run/crio/crio.sock
+ taints:
+ - key: kubeadmNode
+ value: master
+ effect: NoSchedule
+ kubeletExtraArgs:
+ cgroup-driver: systemd
+discovery:
+ bootstrapToken:
+ token: 783bdf.3f89s0fje9f38fhf
+ apiServerEndpoint: k8s:6443
+ unsafeSkipCAVerification: true
+controlPlane:
+ localAPIEndpoint:
+ advertiseAddress: 0.0.0.0
+ bindPort: 6443
+ certificateKey: e6a2eb8581237ab72a4f494f30285ec12a9694d750b9785706a83bfcbbbd2204
+---
+# https://godoc.org/k8s.io/kubelet/config/v1beta1#KubeletConfiguration
+apiVersion: kubelet.config.k8s.io/v1beta1
+kind: KubeletConfiguration
+cgroupDriver: systemd