diff --git a/roles/kubernetes/master/templates/kubeadm-config.v1beta1.yaml.j2 b/roles/kubernetes/master/templates/kubeadm-config.v1beta1.yaml.j2 index 73faa2889..caceb5128 100644 --- a/roles/kubernetes/master/templates/kubeadm-config.v1beta1.yaml.j2 +++ b/roles/kubernetes/master/templates/kubeadm-config.v1beta1.yaml.j2 @@ -158,7 +158,7 @@ apiServer: - name: {{ volume.name }} hostPath: {{ volume.hostPath }} mountPath: {{ volume.mountPath }} - readOnly: {{ volume.readOnly | d(not volume.writable) }} + readOnly: {{ volume.readOnly | d(not (volume.writable | d(false))) }} {% endfor %} {% endif %} certSANs: @@ -201,7 +201,7 @@ controllerManager: - name: {{ volume.name }} hostPath: {{ volume.hostPath }} mountPath: {{ volume.mountPath }} - readOnly: {{ volume.readOnly | d(not volume.writable) }} + readOnly: {{ volume.readOnly | d(not (volume.writable | d(false))) }} {% endfor %} {% endif %} scheduler: @@ -222,7 +222,7 @@ scheduler: - name: {{ volume.name }} hostPath: {{ volume.hostPath }} mountPath: {{ volume.mountPath }} - readOnly: {{ volume.readOnly | d(not volume.writable) }} + readOnly: {{ volume.readOnly | d(not (volume.writable | d(false))) }} {% endfor %} {% endif %} ---