Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Ensure /etc/kubernetes exists following Kubelet inlining
Browse files Browse the repository at this point in the history
* 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
* poseidon/typhoon#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)
  • Loading branch information
dghubble committed Jan 7, 2020
1 parent 531d371 commit d367e62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cl/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ systemd:
[Install]
WantedBy=multi-user.target
storage:
directories:
- path: /etc/kubernetes
filesystem: root
files:
- path: /opt/bootstrap/layout
filesystem: root
Expand Down
3 changes: 3 additions & 0 deletions cl/worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d367e62

Please sign in to comment.