在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链接在这里
kubernetes ×1