apiVersion: v1
kind: Pod
metadata:
name: busybox1
labels:
name: busybox
spec:
使用主机IPC
hostIPC: true
使用主机PID
hostPID: true
使用主机网络命名空间
hostNetwork: true
containers:
- image: busybox
command:
- sleep
- "3600"
name: busybox
apiVersion: v1
kind: Pod
metadata:
name: busybox1
labels:
name: busybox
spec:
使用主机IPC
hostIPC: true
使用主机PID
hostPID: true
使用主机网络命名空间
hostNetwork: true
containers:
- image: busybox
command:
- sleep
- "3600"
name: busybox
转载于:https://www.cnblogs.com/allenhaozi/p/8066649.html