Skip to content
Snippets Groups Projects
Unverified Commit 78532482 authored by zhengtianbao's avatar zhengtianbao Committed by GitHub
Browse files

Set ingress-nginx default terminationGracePeriodSeconds to 5 min (#8252)

* set ingress-nginx default terminationGracePeriodSeconds to 5 min for the drain of connection

* Add ingress_nginx_termination_grace_period_seconds at sample inventory
parent 31c7b674
No related branches found
No related tags found
No related merge requests found
...@@ -116,6 +116,7 @@ ingress_publish_status_address: "" ...@@ -116,6 +116,7 @@ ingress_publish_status_address: ""
# 53: "kube-system/coredns:53" # 53: "kube-system/coredns:53"
# ingress_nginx_extra_args: # ingress_nginx_extra_args:
# - --default-ssl-certificate=default/foo-tls # - --default-ssl-certificate=default/foo-tls
# ingress_nginx_termination_grace_period_seconds: 300
# ingress_nginx_class: nginx # ingress_nginx_class: nginx
# ALB ingress controller deployment # ALB ingress controller deployment
......
...@@ -12,4 +12,5 @@ ingress_nginx_configmap: {} ...@@ -12,4 +12,5 @@ ingress_nginx_configmap: {}
ingress_nginx_configmap_tcp_services: {} ingress_nginx_configmap_tcp_services: {}
ingress_nginx_configmap_udp_services: {} ingress_nginx_configmap_udp_services: {}
ingress_nginx_extra_args: [] ingress_nginx_extra_args: []
ingress_nginx_termination_grace_period_seconds: 300
# ingress_nginx_class: nginx # ingress_nginx_class: nginx
...@@ -22,6 +22,7 @@ spec: ...@@ -22,6 +22,7 @@ spec:
prometheus.io/scrape: "true" prometheus.io/scrape: "true"
spec: spec:
serviceAccountName: ingress-nginx serviceAccountName: ingress-nginx
terminationGracePeriodSeconds: {{ ingress_nginx_termination_grace_period_seconds }}
{% if ingress_nginx_host_network %} {% if ingress_nginx_host_network %}
hostNetwork: true hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet dnsPolicy: ClusterFirstWithHostNet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment