Skip to content

Commit

Permalink
Merge pull request #1238 from flatcar/scripts
Browse files Browse the repository at this point in the history
coreos-base/misc-files: Make Kubernetes work by default through symlink
  • Loading branch information
pothos committed Oct 10, 2023
2 parents 5ddf717 + 258a059 commit 4d10b88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/changes/2023-10-09-kubernetes-usr-libexec.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- To make Kubernetes work by default, `/usr/libexec/kubernetes/kubelet-plugins/volume/exec` is now a symlink to the writable folder `/var/kubernetes/kubelet-plugins/volume/exec` ([Flatcar#1193](https://github.com/flatcar/Flatcar/issues/1193))
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,9 @@ src_install() {
# Enable some sockets that aren't enabled by their own ebuilds.
systemd_enable_service sockets.target sshd.socket
fi

# Create a symlink for Kubernetes to redirect writes from /usr/libexec/... to /var/kubernetes/...
# (The below keepdir will result in a tmpfiles entry in base_image_var.conf)
keepdir /var/kubernetes/kubelet-plugins/volume/exec
dosym /var/kubernetes/kubelet-plugins/volume/exec /usr/libexec/kubernetes/kubelet-plugins/volume/exec
}

0 comments on commit 4d10b88

Please sign in to comment.