From 68c7e0d6ccd86291c9c7438356fafaca0aadc7fe Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 21 Jul 2025 15:06:18 -0500 Subject: [PATCH] argocd: Set imagePullPolicy: IfNotPresent We don't want to pull public container images that already exist. This creates prevents pods from starting if there is any connectivity issue with the upstream registry. --- argocd/kustomization.yaml | 60 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/argocd/kustomization.yaml b/argocd/kustomization.yaml index 5e80df5..fcf43f2 100644 --- a/argocd/kustomization.yaml +++ b/argocd/kustomization.yaml @@ -24,6 +24,66 @@ configMapGenerator: - policy.csv patches: +- patch: |- + apiVersion: apps/v1 + kind: StatefulSet + metadata: + name: argocd-application-controller + spec: + template: + spec: + containers: + - name: argocd-application-controller + imagePullPolicy: IfNotPresent + +- patch: |- + apiVersion: apps/v1 + kind: Deployment + metadata: + name: argocd-notifications-controller + spec: + template: + spec: + containers: + - name: argocd-notifications-controller + imagePullPolicy: IfNotPresent + +- patch: |- + apiVersion: apps/v1 + kind: Deployment + metadata: + name: argocd-redis + spec: + template: + spec: + containers: + - name: redis + imagePullPolicy: IfNotPresent + +- patch: |- + apiVersion: apps/v1 + kind: Deployment + metadata: + name: argocd-repo-server + spec: + template: + spec: + containers: + - name: argocd-repo-server + imagePullPolicy: IfNotPresent + +- patch: |- + apiVersion: apps/v1 + kind: Deployment + metadata: + name: argocd-server + spec: + template: + spec: + containers: + - name: argocd-server + imagePullPolicy: IfNotPresent + - patch: |- $patch: delete apiVersion: apiextensions.k8s.io/v1