mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 05:45:06 +03:00
fix dashboard certs secret
This commit is contained in:
@@ -176,8 +176,10 @@ spec:
|
|||||||
# to it. Uncomment only if the default does not work.
|
# to it. Uncomment only if the default does not work.
|
||||||
# - --apiserver-host=http://my-address:port
|
# - --apiserver-host=http://my-address:port
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
{% if not dashboard_use_custom_certs %}
|
||||||
- name: kubernetes-dashboard-certs
|
- name: kubernetes-dashboard-certs
|
||||||
mountPath: /certs
|
mountPath: /certs
|
||||||
|
{% endif %}
|
||||||
# Create on-disk volume to store exec logs
|
# Create on-disk volume to store exec logs
|
||||||
- mountPath: /tmp
|
- mountPath: /tmp
|
||||||
name: tmp-volume
|
name: tmp-volume
|
||||||
@@ -189,9 +191,11 @@ spec:
|
|||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
timeoutSeconds: 30
|
timeoutSeconds: 30
|
||||||
volumes:
|
volumes:
|
||||||
|
{% if not dashboard_use_custom_certs %}
|
||||||
- name: kubernetes-dashboard-certs
|
- name: kubernetes-dashboard-certs
|
||||||
secret:
|
secret:
|
||||||
secretName: kubernetes-dashboard-certs
|
secretName: kubernetes-dashboard-certs
|
||||||
|
{% endif %}
|
||||||
- name: tmp-volume
|
- name: tmp-volume
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
serviceAccountName: kubernetes-dashboard
|
serviceAccountName: kubernetes-dashboard
|
||||||
|
|||||||
Reference in New Issue
Block a user