在kubernetes pod yaml规范文件中,您可以使用设置Pod以使用主机的网络hostNetwork:true。
我在哪里找不到关于hostPID:true和hostIPC:true选项含义的很好的解释(适合初学者)。假设对Linux网络等知识不多,请有人可以解释一下。谢谢。
spec:
template:
metadata:
labels:
name: podName
spec:
hostPID: true
hostIPC: true
hostNetwork: true
containers:
来源:github链接在这里
它们在“ API定义”概述中进行了大致描述
hostPID-使用主机的pid名称空间。可选:默认为false。
hostIPC-使用主机的ipc名称空间。可选:默认为false。
这些都涉及到SecurityContext的Pod。您可以在Pod Security设计文档中找到更多信息。
| 归档时间: |
|
| 查看次数: |
4697 次 |
| 最近记录: |