Add labels for ingress_nginx_namespace, also only setup serviceAccountName if rbac_enabled
parent
dada98143c
commit
e65904eee3
|
@ -21,7 +21,6 @@ spec:
|
||||||
k8s-app: ingress-nginx
|
k8s-app: ingress-nginx
|
||||||
version: v{{ ingress_nginx_controller_image_tag }}
|
version: v{{ ingress_nginx_controller_image_tag }}
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: ingress-nginx
|
|
||||||
containers:
|
containers:
|
||||||
- name: ingress-nginx-controller
|
- name: ingress-nginx-controller
|
||||||
image: {{ ingress_nginx_controller_image_repo }}:{{ ingress_nginx_controller_image_tag }}
|
image: {{ ingress_nginx_controller_image_repo }}:{{ ingress_nginx_controller_image_tag }}
|
||||||
|
@ -68,3 +67,6 @@ spec:
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
|
{% if rbac_enabled %}
|
||||||
|
serviceAccountName: ingress-nginx
|
||||||
|
{% endif %}
|
||||||
|
|
|
@ -3,3 +3,5 @@ apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ ingress_nginx_namespace }}
|
name: {{ ingress_nginx_namespace }}
|
||||||
|
labels:
|
||||||
|
name: {{ ingress_nginx_namespace }}
|
||||||
|
|
Loading…
Reference in New Issue