Create namespace when dashboard deployment uses customized namespace. (#6107)
* Create namespace when dashboard deployment uses customized namespace. * Fix syntax.
This commit is contained in:
parent
b6243bfc1c
commit
9ce7fc9b2c
1 changed files with 10 additions and 1 deletions
|
@ -17,9 +17,18 @@
|
||||||
#
|
#
|
||||||
# Example usage: kubectl create -f <this_file>
|
# Example usage: kubectl create -f <this_file>
|
||||||
|
|
||||||
|
{% if dashboard_namespace != "kube-system" %}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: {{ dashboard_namespace }}
|
||||||
|
labels:
|
||||||
|
name: {{ dashboard_namespace }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
---
|
---
|
||||||
# ------------------- Dashboard Secrets ------------------- #
|
# ------------------- Dashboard Secrets ------------------- #
|
||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
|
|
Loading…
Reference in a new issue