Add master toleration flag in dashboard deployment (#4290)
This commit is contained in:
parent
7dfa39483f
commit
81801ce23b
2 changed files with 3 additions and 1 deletions
|
@ -50,6 +50,7 @@ dashboard_use_custom_certs: false
|
||||||
dashboard_certs_secret_name: kubernetes-dashboard-certs
|
dashboard_certs_secret_name: kubernetes-dashboard-certs
|
||||||
dashboard_tls_key_file: dashboard.key
|
dashboard_tls_key_file: dashboard.key
|
||||||
dashboard_tls_cert_file: dashboard.crt
|
dashboard_tls_cert_file: dashboard.crt
|
||||||
|
dashboard_master_toleration: true
|
||||||
|
|
||||||
# Override dashboard default settings
|
# Override dashboard default settings
|
||||||
dashboard_token_ttl: 900
|
dashboard_token_ttl: 900
|
||||||
|
|
|
@ -193,10 +193,11 @@ spec:
|
||||||
- name: tmp-volume
|
- name: tmp-volume
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
serviceAccountName: kubernetes-dashboard
|
serviceAccountName: kubernetes-dashboard
|
||||||
# Comment the following tolerations if Dashboard must not be deployed on master
|
{% if dashboard_master_toleration %}
|
||||||
tolerations:
|
tolerations:
|
||||||
- key: node-role.kubernetes.io/master
|
- key: node-role.kubernetes.io/master
|
||||||
effect: NoSchedule
|
effect: NoSchedule
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
---
|
---
|
||||||
# ------------------- Dashboard Service ------------------- #
|
# ------------------- Dashboard Service ------------------- #
|
||||||
|
|
Loading…
Reference in a new issue