Skip to content

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
* #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 bb586b6 commit 0223b31
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bare-metal/container-linux/kubernetes/cl/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ systemd:
[Install]
WantedBy=multi-user.target
storage:
directories:
- path: /etc/kubernetes
filesystem: root
files:
- path: /etc/hostname
filesystem: root
Expand Down
3 changes: 3 additions & 0 deletions bare-metal/container-linux/kubernetes/cl/worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ systemd:
WantedBy=multi-user.target
storage:
directories:
- path: /etc/kubernetes
filesystem: root
files:
- path: /etc/hostname
filesystem: root
Expand Down
3 changes: 3 additions & 0 deletions digital-ocean/container-linux/kubernetes/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 digital-ocean/container-linux/kubernetes/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 0223b31

Please sign in to comment.