From 7646a8137795cb543c1613535e85172b9d6c816d Mon Sep 17 00:00:00 2001 From: gruberdev Date: Sat, 9 Sep 2023 09:55:16 -0300 Subject: [PATCH] [nginx] added recreate strategy for deploy --- apps/networking/ingress-nginx/deployment.yaml | 6 ++++-- apps/networking/ingress-nginx/sa.yaml | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/networking/ingress-nginx/deployment.yaml b/apps/networking/ingress-nginx/deployment.yaml index b1f592198..68e160de9 100644 --- a/apps/networking/ingress-nginx/deployment.yaml +++ b/apps/networking/ingress-nginx/deployment.yaml @@ -13,6 +13,8 @@ spec: app.kubernetes.io/name: ingress-nginx app.kubernetes.io/component: controller replicas: 1 + strategy: + type: Recreate revisionHistoryLimit: 10 minReadySeconds: 0 template: @@ -27,7 +29,7 @@ spec: - name: controller image: "registry.k8s.io/ingress-nginx/controller:v1.8.1@sha256:e5c4824e7375fcf2a393e1c03c293b69759af37a9ca6abdb91b13d78a93da8bd" imagePullPolicy: IfNotPresent - lifecycle: + lifecycle: preStop: exec: command: @@ -99,7 +101,7 @@ spec: requests: cpu: 100m memory: 90Mi - nodeSelector: + nodeSelector: kubernetes.io/os: linux serviceAccountName: ingress-nginx terminationGracePeriodSeconds: 300 diff --git a/apps/networking/ingress-nginx/sa.yaml b/apps/networking/ingress-nginx/sa.yaml index 220375fa3..d5d5af5ec 100644 --- a/apps/networking/ingress-nginx/sa.yaml +++ b/apps/networking/ingress-nginx/sa.yaml @@ -2,8 +2,6 @@ apiVersion: v1 kind: ServiceAccount metadata: - annotations: - argocd.argoproj.io/sync-options: Replace=true labels: app.kubernetes.io/name: ingress-nginx app.kubernetes.io/part-of: ingress-nginx