From d367e622d1112bbf6bb11e76fefc866aa4463e44 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Mon, 6 Jan 2020 21:38:20 -0800 Subject: [PATCH] Ensure /etc/kubernetes exists following Kubelet inlining * Inlining the Kubelet service removed the need for the kubelet.env file declared in Ignition. However, on some platforms, this removed the guarantee that /etc/kubernetes exists. Bare-Metal and DigitalOcean distribute the kubelet kubeconfig through Terraform file provisioner (scp) and place it in (now missing) /etc/kubernetes * https://github.com/poseidon/typhoon/pull/606 * Fix bare-metal and DigitalOcean Ignition to ensure the desired directory exists following first boot from disk * Cloud platforms with worker pools distribute the kubeconfig through Ignition user data (no impact or need) --- cl/controller.yaml | 3 +++ cl/worker.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/cl/controller.yaml b/cl/controller.yaml index f318d04..4cb2a20 100644 --- a/cl/controller.yaml +++ b/cl/controller.yaml @@ -152,6 +152,9 @@ systemd: [Install] WantedBy=multi-user.target storage: + directories: + - path: /etc/kubernetes + filesystem: root files: - path: /opt/bootstrap/layout filesystem: root diff --git a/cl/worker.yaml b/cl/worker.yaml index 073c333..8427ec4 100644 --- a/cl/worker.yaml +++ b/cl/worker.yaml @@ -111,6 +111,9 @@ systemd: [Install] WantedBy=multi-user.target storage: + directories: + - path: /etc/kubernetes + filesystem: root files: - path: /etc/sysctl.d/max-user-watches.conf filesystem: root