kubernetes pod中的hostPID和hostIPC选项是什么意思?

mle*_*ard 3 kubernetes

在kubernetes pod yaml规范文件中,您可以使用设置Pod以使用主机的网络hostNetwork:true

我在哪里找不到关于hostPID:truehostIPC:true选项含义的很好的解释(适合初学者)。假设对Linux网络等知识不多,请有人可以解释一下。谢谢。

spec: template: metadata: labels: name: podName spec: hostPID: true hostIPC: true hostNetwork: true containers: 来源:github链接在这里

pag*_*gid 5

它们在“ API定义”概述中进行了大致描述

hostPID-使用主机的pid名称空间。可选:默认为false。

hostIPC-使用主机的ipc名称空间。可选:默认为false。

这些都涉及到SecurityContextPod。您可以在Pod Security设计文档中找到更多信息。

  • 该设计文档的链接已更改 - 现在 [位于此处](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/auth/pod-security-context.md) (2认同)