Skip to content

Use shared mounts instead of containerized#2

Open
huggsboson wants to merge 1 commit into
masterfrom
SwitchToSharedMount
Open

Use shared mounts instead of containerized#2
huggsboson wants to merge 1 commit into
masterfrom
SwitchToSharedMount

Conversation

@huggsboson

Copy link
Copy Markdown
Owner

No description provided.

Comment thread kube-up.sh
docker-machine ssh $DOCKER_MACHINE_NAME "mount | grep -o 'on /var/lib/kubelet.* type' | cut -c 4- | rev | cut -c 6- | rev | sort -r | xargs --no-run-if-empty sudo umount"
docker-machine ssh $DOCKER_MACHINE_NAME "sudo rm -Rf /var/lib/kubelet"
docker-machine ssh $DOCKER_MACHINE_NAME "sudo mkdir -p /var/lib/kubelet"
docker-machine ssh $DOCKER_MACHINE_NAME "sudo mount --bind /var/lib/kubelet /var/lib/kubelet"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does binding /var/lib/kubelet to itself do?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It sets up a bind mount which I can then change to shared below. Basically the overall context is that since kubelet itself is in a container and it's trying to share emptyDirs, secrets, configMaps with other containers in its /var/lib/kubelet dir (which is where those things go) then they need to be in a mount marked as shared so that it can be shared across 2 containers. (kubelet and the container trying to use those mounts).

@kunalparmar

Copy link
Copy Markdown

👍

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.

2 participants