|
@ -34,8 +34,10 @@ ExecStart=/usr/bin/rkt run \ |
|
|
{% if kube_network_plugin in ["calico", "weave", "canal"] %} |
|
|
{% if kube_network_plugin in ["calico", "weave", "canal"] %} |
|
|
--volume etc-cni,kind=host,source=/etc/cni,readOnly=true \ |
|
|
--volume etc-cni,kind=host,source=/etc/cni,readOnly=true \ |
|
|
--volume opt-cni,kind=host,source=/opt/cni,readOnly=true \ |
|
|
--volume opt-cni,kind=host,source=/opt/cni,readOnly=true \ |
|
|
|
|
|
--volume var-lib-cni,kind=host,source=/var/lib/cni,readOnly=false \ |
|
|
--mount volume=etc-cni,target=/etc/cni \ |
|
|
--mount volume=etc-cni,target=/etc/cni \ |
|
|
--mount volume=opt-cni,target=/opt/cni \ |
|
|
--mount volume=opt-cni,target=/opt/cni \ |
|
|
|
|
|
--mount volume=var-lib-cni,target=/var/lib/cni \ |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
--mount volume=dns,target=/etc/resolv.conf \ |
|
|
--mount volume=dns,target=/etc/resolv.conf \ |
|
|
--mount volume=etc-kubernetes,target={{ kube_config_dir }} \ |
|
|
--mount volume=etc-kubernetes,target={{ kube_config_dir }} \ |
|
|
xxxxxxxxxx