|
@ -140,14 +140,6 @@ spec: |
|
|
labels: |
|
|
labels: |
|
|
k8s-app: kubernetes-dashboard |
|
|
k8s-app: kubernetes-dashboard |
|
|
spec: |
|
|
spec: |
|
|
{% if dashboard_use_custom_certs %} |
|
|
|
|
|
initContainers: |
|
|
|
|
|
- name: kubernetes-dashboard-init |
|
|
|
|
|
image: {{ dashboard_init_image_repo }}:{{ dashboard_init_image_tag }} |
|
|
|
|
|
volumeMounts: |
|
|
|
|
|
- name: kubernetes-dashboard-certs |
|
|
|
|
|
mountPath: /certs |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
containers: |
|
|
containers: |
|
|
- name: kubernetes-dashboard |
|
|
- name: kubernetes-dashboard |
|
|
image: {{ dashboard_image_repo }}:{{ dashboard_image_tag }} |
|
|
image: {{ dashboard_image_repo }}:{{ dashboard_image_tag }} |
|
@ -166,10 +158,10 @@ spec: |
|
|
{% if dashboard_use_custom_certs %} |
|
|
{% if dashboard_use_custom_certs %} |
|
|
- --tls-key-file={{ dashboard_tls_key_file }} |
|
|
- --tls-key-file={{ dashboard_tls_key_file }} |
|
|
- --tls-cert-file={{ dashboard_tls_cert_file }} |
|
|
- --tls-cert-file={{ dashboard_tls_cert_file }} |
|
|
- --authentication-mode=token{% if kube_basic_auth|default(false) %},basic{% endif %} |
|
|
|
|
|
{% else %} |
|
|
{% else %} |
|
|
- --auto-generate-certificates |
|
|
- --auto-generate-certificates |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
- --authentication-mode=token{% if kube_basic_auth|default(false) %},basic{% endif %} |
|
|
# Uncomment the following line to manually specify Kubernetes API server Host |
|
|
# Uncomment the following line to manually specify Kubernetes API server Host |
|
|
# If not specified, Dashboard will attempt to auto discover the API server and connect |
|
|
# If not specified, Dashboard will attempt to auto discover the API server and connect |
|
|
# to it. Uncomment only if the default does not work. |
|
|
# to it. Uncomment only if the default does not work. |
|
|