mirror of https://github.com/k3s-io/k3s
hack/cluster: map /run/xtables.lock into containerized kubelet filesystem
parent
c7677a4753
commit
8f967c929f
|
@ -62,6 +62,7 @@ function create_cluster {
|
|||
--volume=/var/lib/docker/:/var/lib/docker:rw \
|
||||
--volume=/var/lib/kubelet/:/var/lib/kubelet:rw \
|
||||
--volume=/var/run:/var/run:rw \
|
||||
--volume=/run/xtables.lock:/run/xtables.lock:rw \
|
||||
--net=host \
|
||||
--pid=host \
|
||||
--privileged=true \
|
||||
|
|
|
@ -674,6 +674,7 @@ function start_kubelet {
|
|||
--volume=/var/lib/docker/:/var/lib/docker:ro \
|
||||
--volume=/var/lib/kubelet/:/var/lib/kubelet:rw \
|
||||
--volume=/dev:/dev \
|
||||
--volume=/run/xtables.lock:/run/xtables.lock:rw \
|
||||
${cred_bind} \
|
||||
--net=host \
|
||||
--privileged=true \
|
||||
|
|
Loading…
Reference in New Issue