Skip to content

Commit

Permalink
[nginx] added recreate strategy for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberdev committed Sep 9, 2023
1 parent c12c190 commit 7646a81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions apps/networking/ingress-nginx/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -99,7 +101,7 @@ spec:
requests:
cpu: 100m
memory: 90Mi
nodeSelector:
nodeSelector:
kubernetes.io/os: linux
serviceAccountName: ingress-nginx
terminationGracePeriodSeconds: 300
Expand Down
2 changes: 0 additions & 2 deletions apps/networking/ingress-nginx/sa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7646a81

Please sign in to comment.