fix dashboard certs secret

This commit is contained in:
rong.zhang 2017-12-22 11:17:05 +08:00
parent b974b144a8
commit 5aef52e8c0

View file

@ -176,8 +176,10 @@ spec:
# to it. Uncomment only if the default does not work.
# - --apiserver-host=http://my-address:port
volumeMounts:
{% if not dashboard_use_custom_certs %}
- name: kubernetes-dashboard-certs
mountPath: /certs
{% endif %}
# Create on-disk volume to store exec logs
- mountPath: /tmp
name: tmp-volume
@ -189,9 +191,11 @@ spec:
initialDelaySeconds: 30
timeoutSeconds: 30
volumes:
{% if not dashboard_use_custom_certs %}
- name: kubernetes-dashboard-certs
secret:
secretName: kubernetes-dashboard-certs
{% endif %}
- name: tmp-volume
emptyDir: {}
serviceAccountName: kubernetes-dashboard