Dedicated node for ingress nginx controller

The ability to create dedicated node for ingress nginx controller
host type network for nginx controller

and add from example https://github.com/kubernetes/ingress-nginx/blob/master/docs/examples/static-ip/nginx-ingress-controller.yaml
terminationGracePeriodSeconds: 60
This commit is contained in:
Sergey Bondarev
2018-03-17 02:54:46 +03:00
parent 710295bd2f
commit 1481f7d64b
4 changed files with 16 additions and 0 deletions

View File

@@ -21,6 +21,14 @@ spec:
k8s-app: ingress-nginx
version: v{{ ingress_nginx_controller_image_tag }}
spec:
{% if ingres_nginx_host_network is defined and ingres_nginx_host_network %}
hostNetwork: true
{% endif %}
{% if 'kube-ingress' in groups %}
nodeSelector:
node-role.kubernetes.io/ingress: "true"
{% endif %}
terminationGracePeriodSeconds: 60
containers:
- name: ingress-nginx-controller
image: {{ ingress_nginx_controller_image_repo }}:{{ ingress_nginx_controller_image_tag }}