diff --git a/ansible/roles/rke_configuration/templates/cluster.yml.j2 b/ansible/roles/rke_configuration/templates/cluster.yml.j2 index 617ec446509ac115d64eb7b6def0bbf491a59079..07d90dccbb5d258c2af1131eb80817dd021bb858 100644 --- a/ansible/roles/rke_configuration/templates/cluster.yml.j2 +++ b/ansible/roles/rke_configuration/templates/cluster.yml.j2 @@ -46,10 +46,16 @@ 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 %} extra_binds: + # Make local storage work with persistent volumes that use `subpath` + # see https://open.greenhost.net/openappstack/openappstack/issues/236 + - "/:/rootfs:rshared" +{% if flexvolume_plugins %} - /usr/libexec/kubernetes/kubelet-plugins/volume/exec:/usr/libexec/kubernetes/kubelet-plugins/volume/exec {% endif %} cluster_domain: cluster.local