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

add: K3D_FIX_MOUNTS fix to make / rshared (e.g. to make Cilium work) #1268

Merged
merged 2 commits into from
Apr 28, 2023

Conversation

iwilltry42
Copy link
Member

What

New env var K3D_FIX_MOUNTS, set it to e.g. K3D_FIX_MOUNTS=1 to make / in the node containers rshared mounts.
This fixes e.g. the setup of Cilium.

If there are no bad implications of this and no one raises issues while using it throughout a few versions, we can add it as a default entrypoint.

Why

#1063

Implications

@iwilltry42 iwilltry42 self-assigned this Apr 25, 2023
@iwilltry42 iwilltry42 added the enhancement New feature or request label Apr 25, 2023
@iwilltry42 iwilltry42 added this to In progress in Convenience Features via automation Apr 25, 2023
@iwilltry42 iwilltry42 added this to the v5.5.0 milestone Apr 25, 2023
@MrPeacockNLB
Copy link

Wow waiting so long for this to get cilium working out of the box working

@iwilltry42 iwilltry42 merged commit 8d54019 into main Apr 28, 2023
Convenience Features automation moved this from In progress to Done Apr 28, 2023
@iwilltry42 iwilltry42 deleted the iwilltry42/issue1063 branch April 28, 2023 21:32
@deyanp
Copy link

deyanp commented Oct 3, 2023

@iwilltry42 , how can I set this env var upon creation of the cluster?

or is this not necessary, since #2246 was implemented?

Sorry, new to k3d ... and a bit confused

@iwilltry42
Copy link
Member Author

@deyanp just export it in your shell before running k3d 👍
E.g.export K3D_FIX_MOUNTS=1.
It will be enabled by default in the next release.

@deyanp
Copy link

deyanp commented Oct 3, 2023

Wow, thanks @iwilltry42 !

I was thinking I should do

k3d cluster create $clusterName --registry-use $registryName:$registryPort --k3s-arg "--disable=traefik@server:*" --env 'K3D_FIX_MOUNTS=1@server:*'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants