diff --git a/deploy/static/provider/aws/deploy-tls-termination.yaml b/deploy/static/provider/aws/deploy-tls-termination.yaml index d99b5d5e7..8783b1fd2 100644 --- a/deploy/static/provider/aws/deploy-tls-termination.yaml +++ b/deploy/static/provider/aws/deploy-tls-termination.yaml @@ -326,6 +326,11 @@ spec: - name: controller image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.30.0 imagePullPolicy: IfNotPresent + lifecycle: + preStop: + exec: + command: + - /wait-shutdown args: - /nginx-ingress-controller - --publish-service=ingress-nginx/ingress-nginx-controller @@ -391,7 +396,7 @@ spec: cpu: 100m memory: 90Mi serviceAccountName: ingress-nginx - terminationGracePeriodSeconds: 60 + terminationGracePeriodSeconds: 300 volumes: - name: webhook-cert secret: diff --git a/deploy/static/provider/aws/deploy.yaml b/deploy/static/provider/aws/deploy.yaml index 1dc6b4d57..518457978 100644 --- a/deploy/static/provider/aws/deploy.yaml +++ b/deploy/static/provider/aws/deploy.yaml @@ -322,6 +322,11 @@ spec: - name: controller image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.30.0 imagePullPolicy: IfNotPresent + lifecycle: + preStop: + exec: + command: + - /wait-shutdown args: - /nginx-ingress-controller - --publish-service=ingress-nginx/ingress-nginx-controller @@ -387,7 +392,7 @@ spec: cpu: 100m memory: 90Mi serviceAccountName: ingress-nginx - terminationGracePeriodSeconds: 60 + terminationGracePeriodSeconds: 300 volumes: - name: webhook-cert secret: diff --git a/deploy/static/provider/baremetal/deploy.yaml b/deploy/static/provider/baremetal/deploy.yaml index 9ff60d996..ff9de1efd 100644 --- a/deploy/static/provider/baremetal/deploy.yaml +++ b/deploy/static/provider/baremetal/deploy.yaml @@ -316,6 +316,11 @@ spec: - name: controller image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.30.0 imagePullPolicy: IfNotPresent + lifecycle: + preStop: + exec: + command: + - /wait-shutdown args: - /nginx-ingress-controller - --election-id=ingress-controller-leader @@ -380,7 +385,7 @@ spec: cpu: 100m memory: 90Mi serviceAccountName: ingress-nginx - terminationGracePeriodSeconds: 60 + terminationGracePeriodSeconds: 300 volumes: - name: webhook-cert secret: diff --git a/deploy/static/provider/cloud/deploy.yaml b/deploy/static/provider/cloud/deploy.yaml index dd7e695ca..845e5d4fb 100644 --- a/deploy/static/provider/cloud/deploy.yaml +++ b/deploy/static/provider/cloud/deploy.yaml @@ -317,6 +317,11 @@ spec: - name: controller image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.30.0 imagePullPolicy: IfNotPresent + lifecycle: + preStop: + exec: + command: + - /wait-shutdown args: - /nginx-ingress-controller - --publish-service=ingress-nginx/ingress-nginx-controller @@ -382,7 +387,7 @@ spec: cpu: 100m memory: 90Mi serviceAccountName: ingress-nginx - terminationGracePeriodSeconds: 60 + terminationGracePeriodSeconds: 300 volumes: - name: webhook-cert secret: