kubernetes: Mount hostpath volume after pod start

8/2/2017

In kubernetes, is there a way to mount hostPath volume after pod got started?

-- banjara
containers
docker
google-kubernetes-engine
kubernetes

1 Answer

8/3/2017

There is no way to add a volume to a running Docker container, so Kubernetes has no way to add a volume to a running Pod. Modifying the Pod to include a new hostPath volume will recreate the container(s) in the Pod and mount the volumes as specified.

-- coreypobrien
Source: StackOverflow