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)
This commit is contained in:
Dalton Hubble 2020-01-06 21:38:20 -08:00
parent bb586b60da
commit 0223b31e1a
4 changed files with 12 additions and 0 deletions

View File

@ -155,6 +155,9 @@ systemd:
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
storage: storage:
directories:
- path: /etc/kubernetes
filesystem: root
files: files:
- path: /etc/hostname - path: /etc/hostname
filesystem: root filesystem: root

View File

@ -103,6 +103,9 @@ systemd:
WantedBy=multi-user.target WantedBy=multi-user.target
storage: storage:
directories:
- path: /etc/kubernetes
filesystem: root
files: files:
- path: /etc/hostname - path: /etc/hostname
filesystem: root filesystem: root

View File

@ -152,6 +152,9 @@ systemd:
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
storage: storage:
directories:
- path: /etc/kubernetes
filesystem: root
files: files:
- path: /opt/bootstrap/layout - path: /opt/bootstrap/layout
filesystem: root filesystem: root

View File

@ -111,6 +111,9 @@ systemd:
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
storage: storage:
directories:
- path: /etc/kubernetes
filesystem: root
files: files:
- path: /etc/sysctl.d/max-user-watches.conf - path: /etc/sysctl.d/max-user-watches.conf
filesystem: root filesystem: root