diff --git a/helm/README.md b/helm/README.md index ab4be517b..e4a3adee0 100644 --- a/helm/README.md +++ b/helm/README.md @@ -5,6 +5,7 @@ | image.name | beryju/authentik | Image used to run the authentik server and worker | | image.name_static | beryju/authentik-static | Image used to run the authentik static server (CSS and JS Files) | | image.tag | 0.13.0-rc2 | Image tag | +| image.pullPolicy | IfNotPresent | Image Pull Policy used for all deployments | | serverReplicas | 1 | Replicas for the Server deployment | | workerReplicas | 1 | Replicas for the Worker deployment | | kubernetesIntegration | true | Enable/disable the Kubernetes integration for authentik. This will create a service account for authentik to create and update outposts in authentik | diff --git a/helm/templates/static-deployment.yaml b/helm/templates/static-deployment.yaml index e35f268b9..7feee3089 100644 --- a/helm/templates/static-deployment.yaml +++ b/helm/templates/static-deployment.yaml @@ -24,7 +24,7 @@ spec: containers: - name: {{ .Chart.Name }}-static image: "{{ .Values.image.name_static }}:{{ .Values.image.tag }}" - imagePullPolicy: IfNotPresent + imagePullPolicy: "{{ .Values.image.pullPolicy }}" ports: - name: http containerPort: 80 diff --git a/helm/templates/web-deployment.yaml b/helm/templates/web-deployment.yaml index 498b6a7a7..179be6251 100644 --- a/helm/templates/web-deployment.yaml +++ b/helm/templates/web-deployment.yaml @@ -45,6 +45,7 @@ spec: initContainers: - name: authentik-database-migrations image: "{{ .Values.image.name }}:{{ .Values.image.tag }}" + imagePullPolicy: "{{ .Values.image.pullPolicy }}" args: [migrate] envFrom: - configMapRef: @@ -69,6 +70,7 @@ spec: containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.name }}:{{ .Values.image.tag }}" + imagePullPolicy: "{{ .Values.image.pullPolicy }}" args: [server] envFrom: - configMapRef: diff --git a/helm/templates/worker-deployment.yaml b/helm/templates/worker-deployment.yaml index e5c2b659d..af084295b 100644 --- a/helm/templates/worker-deployment.yaml +++ b/helm/templates/worker-deployment.yaml @@ -48,7 +48,7 @@ spec: containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.name }}:{{ .Values.image.tag }}" - imagePullPolicy: IfNotPresent + imagePullPolicy: "{{ .Values.image.pullPolicy }}" args: [worker] envFrom: - configMapRef: diff --git a/helm/values.test.yaml b/helm/values.test.yaml index 7ea90c543..81fef9fde 100644 --- a/helm/values.test.yaml +++ b/helm/values.test.yaml @@ -1,5 +1,6 @@ image: tag: gh-master + pullPolicy: Always serverReplicas: 1 workerReplicas: 1 diff --git a/helm/values.yaml b/helm/values.yaml index 5aac2eb3b..f4f55bd61 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -6,6 +6,7 @@ image: name_static: beryju/authentik-static name_outposts: beryju/authentik # Prefix used for Outpost deployments, Outpost type and version is appended tag: 0.13.0-rc2 + pullPolicy: IfNotPresent serverReplicas: 1 workerReplicas: 1