In kubernetes pod yaml specification file, you can set a pod to use the host machine's network using hostNetwork:true
.
I can't find anywhere a good (suitable for a beginner) explanation of what the hostPID:true
and hostIPC:true
options mean. Please could someone explain this, assuming little knowledge in linux networking and such. Thanks.
spec:
template:
metadata:
labels:
name: podName
spec:
hostPID: true
hostIPC: true
hostNetwork: true
containers:
Source: github link here