简体   繁体   English

kubernetes:在pod启动后挂载主机路径卷

[英]kubernetes: Mount hostpath volume after pod start

在kubernetes中,有没有一种方法可以在pod启动后挂载hostPath卷

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. 无法将卷添加到正在运行的Docker容器,因此Kubernetes无法将卷添加到正在运行的Pod。 Modifying the Pod to include a new hostPath volume will recreate the container(s) in the Pod and mount the volumes as specified. 修改Pod以包括新的hostPath卷将在Pod中重新创建容器,并按指定方式安装卷。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM