mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-24 18:19:33 +01:00
Change Kubelet /var/lib/calico mount to read-only (#643)
* Kubelet only requires read access to /var/lib/calico Signed-off-by: Suraj Deshmukh <surajd.service@gmail.com>
This commit is contained in:
parent
7ca03e5219
commit
c4e64a9d1b
@ -79,7 +79,7 @@ systemd:
|
|||||||
--mount volume=run,target=/run \
|
--mount volume=run,target=/run \
|
||||||
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
||||||
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
||||||
--volume var-lib-calico,kind=host,source=/var/lib/calico \
|
--volume var-lib-calico,kind=host,source=/var/lib/calico,readOnly=true \
|
||||||
--mount volume=var-lib-calico,target=/var/lib/calico \
|
--mount volume=var-lib-calico,target=/var/lib/calico \
|
||||||
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
||||||
--mount volume=var-lib-docker,target=/var/lib/docker \
|
--mount volume=var-lib-docker,target=/var/lib/docker \
|
||||||
|
@ -54,7 +54,7 @@ systemd:
|
|||||||
--mount volume=run,target=/run \
|
--mount volume=run,target=/run \
|
||||||
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
||||||
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
||||||
--volume var-lib-calico,kind=host,source=/var/lib/calico \
|
--volume var-lib-calico,kind=host,source=/var/lib/calico,readOnly=true \
|
||||||
--mount volume=var-lib-calico,target=/var/lib/calico \
|
--mount volume=var-lib-calico,target=/var/lib/calico \
|
||||||
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
||||||
--mount volume=var-lib-docker,target=/var/lib/docker \
|
--mount volume=var-lib-docker,target=/var/lib/docker \
|
||||||
|
@ -73,7 +73,7 @@ systemd:
|
|||||||
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
|
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
|
||||||
--volume /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd \
|
--volume /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd \
|
||||||
--volume /etc/pki/tls/certs:/usr/share/ca-certificates:ro \
|
--volume /etc/pki/tls/certs:/usr/share/ca-certificates:ro \
|
||||||
--volume /var/lib/calico:/var/lib/calico \
|
--volume /var/lib/calico:/var/lib/calico:ro \
|
||||||
--volume /var/lib/docker:/var/lib/docker \
|
--volume /var/lib/docker:/var/lib/docker \
|
||||||
--volume /var/lib/kubelet:/var/lib/kubelet:rshared,z \
|
--volume /var/lib/kubelet:/var/lib/kubelet:rshared,z \
|
||||||
--volume /var/log:/var/log \
|
--volume /var/log:/var/log \
|
||||||
|
@ -43,7 +43,7 @@ systemd:
|
|||||||
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
|
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
|
||||||
--volume /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd \
|
--volume /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd \
|
||||||
--volume /etc/pki/tls/certs:/usr/share/ca-certificates:ro \
|
--volume /etc/pki/tls/certs:/usr/share/ca-certificates:ro \
|
||||||
--volume /var/lib/calico:/var/lib/calico \
|
--volume /var/lib/calico:/var/lib/calico:ro \
|
||||||
--volume /var/lib/docker:/var/lib/docker \
|
--volume /var/lib/docker:/var/lib/docker \
|
||||||
--volume /var/lib/kubelet:/var/lib/kubelet:rshared,z \
|
--volume /var/lib/kubelet:/var/lib/kubelet:rshared,z \
|
||||||
--volume /var/log:/var/log \
|
--volume /var/log:/var/log \
|
||||||
|
@ -78,7 +78,7 @@ systemd:
|
|||||||
--mount volume=run,target=/run \
|
--mount volume=run,target=/run \
|
||||||
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
||||||
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
||||||
--volume var-lib-calico,kind=host,source=/var/lib/calico \
|
--volume var-lib-calico,kind=host,source=/var/lib/calico,readOnly=true \
|
||||||
--mount volume=var-lib-calico,target=/var/lib/calico \
|
--mount volume=var-lib-calico,target=/var/lib/calico \
|
||||||
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
||||||
--mount volume=var-lib-docker,target=/var/lib/docker \
|
--mount volume=var-lib-docker,target=/var/lib/docker \
|
||||||
|
@ -53,7 +53,7 @@ systemd:
|
|||||||
--mount volume=run,target=/run \
|
--mount volume=run,target=/run \
|
||||||
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
||||||
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
||||||
--volume var-lib-calico,kind=host,source=/var/lib/calico \
|
--volume var-lib-calico,kind=host,source=/var/lib/calico,readOnly=true \
|
||||||
--mount volume=var-lib-calico,target=/var/lib/calico \
|
--mount volume=var-lib-calico,target=/var/lib/calico \
|
||||||
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
||||||
--mount volume=var-lib-docker,target=/var/lib/docker \
|
--mount volume=var-lib-docker,target=/var/lib/docker \
|
||||||
|
@ -87,7 +87,7 @@ systemd:
|
|||||||
--mount volume=run,target=/run \
|
--mount volume=run,target=/run \
|
||||||
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
||||||
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
||||||
--volume var-lib-calico,kind=host,source=/var/lib/calico \
|
--volume var-lib-calico,kind=host,source=/var/lib/calico,readOnly=true \
|
||||||
--mount volume=var-lib-calico,target=/var/lib/calico \
|
--mount volume=var-lib-calico,target=/var/lib/calico \
|
||||||
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
||||||
--mount volume=var-lib-docker,target=/var/lib/docker \
|
--mount volume=var-lib-docker,target=/var/lib/docker \
|
||||||
|
@ -62,7 +62,7 @@ systemd:
|
|||||||
--mount volume=run,target=/run \
|
--mount volume=run,target=/run \
|
||||||
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
||||||
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
||||||
--volume var-lib-calico,kind=host,source=/var/lib/calico \
|
--volume var-lib-calico,kind=host,source=/var/lib/calico,readOnly=true \
|
||||||
--mount volume=var-lib-calico,target=/var/lib/calico \
|
--mount volume=var-lib-calico,target=/var/lib/calico \
|
||||||
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
||||||
--mount volume=var-lib-docker,target=/var/lib/docker \
|
--mount volume=var-lib-docker,target=/var/lib/docker \
|
||||||
|
@ -72,7 +72,7 @@ systemd:
|
|||||||
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
|
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
|
||||||
--volume /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd \
|
--volume /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd \
|
||||||
--volume /etc/pki/tls/certs:/usr/share/ca-certificates:ro \
|
--volume /etc/pki/tls/certs:/usr/share/ca-certificates:ro \
|
||||||
--volume /var/lib/calico:/var/lib/calico \
|
--volume /var/lib/calico:/var/lib/calico:ro \
|
||||||
--volume /var/lib/docker:/var/lib/docker \
|
--volume /var/lib/docker:/var/lib/docker \
|
||||||
--volume /var/lib/kubelet:/var/lib/kubelet:rshared,z \
|
--volume /var/lib/kubelet:/var/lib/kubelet:rshared,z \
|
||||||
--volume /var/log:/var/log \
|
--volume /var/log:/var/log \
|
||||||
|
@ -42,7 +42,7 @@ systemd:
|
|||||||
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
|
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
|
||||||
--volume /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd \
|
--volume /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd \
|
||||||
--volume /etc/pki/tls/certs:/usr/share/ca-certificates:ro \
|
--volume /etc/pki/tls/certs:/usr/share/ca-certificates:ro \
|
||||||
--volume /var/lib/calico:/var/lib/calico \
|
--volume /var/lib/calico:/var/lib/calico:ro \
|
||||||
--volume /var/lib/docker:/var/lib/docker \
|
--volume /var/lib/docker:/var/lib/docker \
|
||||||
--volume /var/lib/kubelet:/var/lib/kubelet:rshared,z \
|
--volume /var/lib/kubelet:/var/lib/kubelet:rshared,z \
|
||||||
--volume /var/log:/var/log \
|
--volume /var/log:/var/log \
|
||||||
|
@ -89,7 +89,7 @@ systemd:
|
|||||||
--mount volume=run,target=/run \
|
--mount volume=run,target=/run \
|
||||||
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
||||||
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
||||||
--volume var-lib-calico,kind=host,source=/var/lib/calico \
|
--volume var-lib-calico,kind=host,source=/var/lib/calico,readOnly=true \
|
||||||
--mount volume=var-lib-calico,target=/var/lib/calico \
|
--mount volume=var-lib-calico,target=/var/lib/calico \
|
||||||
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
||||||
--mount volume=var-lib-docker,target=/var/lib/docker \
|
--mount volume=var-lib-docker,target=/var/lib/docker \
|
||||||
|
@ -64,7 +64,7 @@ systemd:
|
|||||||
--mount volume=run,target=/run \
|
--mount volume=run,target=/run \
|
||||||
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
||||||
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
||||||
--volume var-lib-calico,kind=host,source=/var/lib/calico \
|
--volume var-lib-calico,kind=host,source=/var/lib/calico,readOnly=true \
|
||||||
--mount volume=var-lib-calico,target=/var/lib/calico \
|
--mount volume=var-lib-calico,target=/var/lib/calico \
|
||||||
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
||||||
--mount volume=var-lib-docker,target=/var/lib/docker \
|
--mount volume=var-lib-docker,target=/var/lib/docker \
|
||||||
|
@ -78,7 +78,7 @@ systemd:
|
|||||||
--mount volume=run,target=/run \
|
--mount volume=run,target=/run \
|
||||||
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
||||||
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
||||||
--volume var-lib-calico,kind=host,source=/var/lib/calico \
|
--volume var-lib-calico,kind=host,source=/var/lib/calico,readOnly=true \
|
||||||
--mount volume=var-lib-calico,target=/var/lib/calico \
|
--mount volume=var-lib-calico,target=/var/lib/calico \
|
||||||
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
||||||
--mount volume=var-lib-docker,target=/var/lib/docker \
|
--mount volume=var-lib-docker,target=/var/lib/docker \
|
||||||
|
@ -53,7 +53,7 @@ systemd:
|
|||||||
--mount volume=run,target=/run \
|
--mount volume=run,target=/run \
|
||||||
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
--volume usr-share-certs,kind=host,source=/usr/share/ca-certificates,readOnly=true \
|
||||||
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
--mount volume=usr-share-certs,target=/usr/share/ca-certificates \
|
||||||
--volume var-lib-calico,kind=host,source=/var/lib/calico \
|
--volume var-lib-calico,kind=host,source=/var/lib/calico,readOnly=true \
|
||||||
--mount volume=var-lib-calico,target=/var/lib/calico \
|
--mount volume=var-lib-calico,target=/var/lib/calico \
|
||||||
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
--volume var-lib-docker,kind=host,source=/var/lib/docker \
|
||||||
--mount volume=var-lib-docker,target=/var/lib/docker \
|
--mount volume=var-lib-docker,target=/var/lib/docker \
|
||||||
|
@ -73,7 +73,7 @@ systemd:
|
|||||||
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
|
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
|
||||||
--volume /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd \
|
--volume /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd \
|
||||||
--volume /etc/pki/tls/certs:/usr/share/ca-certificates:ro \
|
--volume /etc/pki/tls/certs:/usr/share/ca-certificates:ro \
|
||||||
--volume /var/lib/calico:/var/lib/calico \
|
--volume /var/lib/calico:/var/lib/calico:ro \
|
||||||
--volume /var/lib/docker:/var/lib/docker \
|
--volume /var/lib/docker:/var/lib/docker \
|
||||||
--volume /var/lib/kubelet:/var/lib/kubelet:rshared,z \
|
--volume /var/lib/kubelet:/var/lib/kubelet:rshared,z \
|
||||||
--volume /var/log:/var/log \
|
--volume /var/log:/var/log \
|
||||||
|
@ -43,7 +43,7 @@ systemd:
|
|||||||
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
|
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
|
||||||
--volume /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd \
|
--volume /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd \
|
||||||
--volume /etc/pki/tls/certs:/usr/share/ca-certificates:ro \
|
--volume /etc/pki/tls/certs:/usr/share/ca-certificates:ro \
|
||||||
--volume /var/lib/calico:/var/lib/calico \
|
--volume /var/lib/calico:/var/lib/calico:ro \
|
||||||
--volume /var/lib/docker:/var/lib/docker \
|
--volume /var/lib/docker:/var/lib/docker \
|
||||||
--volume /var/lib/kubelet:/var/lib/kubelet:rshared,z \
|
--volume /var/lib/kubelet:/var/lib/kubelet:rshared,z \
|
||||||
--volume /var/log:/var/log \
|
--volume /var/log:/var/log \
|
||||||
|
Loading…
Reference in New Issue
Block a user