Browse Source
Create namespace when dashboard deployment uses customized namespace. (#6107)
* Create namespace when dashboard deployment uses customized namespace.
* Fix syntax.
pull/6112/head
petruha
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
10 additions and
1 deletions
-
roles/kubernetes-apps/ansible/templates/dashboard.yml.j2
|
@ -17,9 +17,18 @@ |
|
|
# |
|
|
# |
|
|
# Example usage: kubectl create -f <this_file> |
|
|
# Example usage: kubectl create -f <this_file> |
|
|
|
|
|
|
|
|
|
|
|
{% if dashboard_namespace != "kube-system" %} |
|
|
--- |
|
|
--- |
|
|
# ------------------- Dashboard Secrets ------------------- # |
|
|
|
|
|
|
|
|
apiVersion: v1 |
|
|
|
|
|
kind: Namespace |
|
|
|
|
|
metadata: |
|
|
|
|
|
name: {{ dashboard_namespace }} |
|
|
|
|
|
labels: |
|
|
|
|
|
name: {{ dashboard_namespace }} |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
# ------------------- Dashboard Secrets ------------------- # |
|
|
apiVersion: v1 |
|
|
apiVersion: v1 |
|
|
kind: Secret |
|
|
kind: Secret |
|
|
metadata: |
|
|
metadata: |
|
|