Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make CSI plugins work, some improvements #69

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kinjelom
Copy link

Kubelet root directory fix

Kubelet ignores the root-dir argument and creates the socket at:
/var/lib/kubelet/device-plugins/=kubelet.sock
https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#device-plugin-implementation
Therefore, we mount /var/lib/kubelet to the BOSH data directory and keep it unchanged.

This is the only way I've found to make the CSI plugins work.

Switch to Using network.target in Systemd

An error in my deployment indicated that the systemd unit sys-subsystem-net-devices-eth0.device does not exist. In systemd, network devices are not always available as .device units. Instead, you can use a more general dependency like network.target, which ensures that network services are available. This change allows the service to start once the network is properly configured, without relying on a specific device unit that may not be present.

Other Changes

I introduced the k3s-utils package to share functions between the server and agent jobs (DRY) and cleaned up the ERB code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant