diff --git a/ansible/roles/rke_configuration/templates/cluster.yml.j2 b/ansible/roles/rke_configuration/templates/cluster.yml.j2 index 087afa67756630c3422ceeefbbb1681f8ba96b1e..3d51d6f7cd55eb3542faa81749a4c89cb0eb3c01 100644 --- a/ansible/roles/rke_configuration/templates/cluster.yml.j2 +++ b/ansible/roles/rke_configuration/templates/cluster.yml.j2 @@ -46,22 +46,18 @@ services: image: "" kubelet: image: "" -{% if flexvolume_plugins %} extra_args: + containerized: "true" +{% if flexvolume_plugins %} volume-plugin-dir: /usr/libexec/kubernetes/kubelet-plugins/volume/exec +{% endif %} containerized: "true" extra_binds: + - "/:/rootfs:rshared" +{% if flexvolume_plugins %} - /usr/libexec/kubernetes/kubelet-plugins/volume/exec:/usr/libexec/kubernetes/kubelet-plugins/volume/exec # Make local storage work with persistant volumes that use `subpath` # see https://open.greenhost.net/openappstack/openappstack/issues/236 - - "/:/rootfs:rshared" -{% else %} - extra_args: - containerized: "true" - extra_binds: - # Make local storage work with persistant volumes that use `subpath` - # see https://open.greenhost.net/openappstack/openappstack/issues/236 - - "/:/rootfs:rshared" {% endif %} cluster_domain: cluster.local infra_container_image: ""