Customer params in kubectl when run docker
I want the command like follows:
docker run -d --net=host
How can I pass the –net=host params to the docker through kubectl.
One Solution collect form web for “Customer params in kubectl when run docker”
You can set the “hostNetwork” field to true in the pod spec to enable host networking. See the kube-apiserver manifest for an example.