Browse Source

Merge pull request #4048 from chadswen/readonly-writable-fix

Fix kubeadm config extra volumes
pull/4050/head
Chad Swenson 6 years ago
committed by GitHub
parent
commit
0697ab4b4f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions
  1. 6
      roles/kubernetes/master/templates/kubeadm-config.v1beta1.yaml.j2

6
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 %}
---

Loading…
Cancel
Save