2021-08-16 15:23:02 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: {{ include "argocd-image-updater.fullname" . }}
|
|
|
|
labels:
|
|
|
|
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
|
|
|
spec:
|
|
|
|
replicas: {{ .Values.replicaCount }}
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
{{- include "argocd-image-updater.selectorLabels" . | nindent 6 }}
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
annotations:
|
|
|
|
{{- with .Values.podAnnotations }}
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
|
|
|
labels:
|
|
|
|
{{- include "argocd-image-updater.selectorLabels" . | nindent 8 }}
|
|
|
|
spec:
|
|
|
|
{{- with .Values.imagePullSecrets }}
|
|
|
|
imagePullSecrets:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
serviceAccountName: {{ include "argocd-image-updater.serviceAccountName" . }}
|
|
|
|
securityContext:
|
|
|
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
|
|
|
containers:
|
|
|
|
- name: {{ .Chart.Name }}
|
|
|
|
command:
|
|
|
|
- /usr/local/bin/argocd-image-updater
|
|
|
|
- run
|
|
|
|
{{- with .Values.extraArgs }}
|
|
|
|
{{- toYaml . | nindent 12 }}
|
|
|
|
{{- end }}
|
|
|
|
env:
|
2021-11-22 07:18:26 +00:00
|
|
|
- name: APPLICATIONS_API
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
key: applications_api
|
|
|
|
name: argocd-image-updater-config
|
|
|
|
optional: true
|
2021-08-16 15:23:02 +00:00
|
|
|
- name: ARGOCD_GRPC_WEB
|
2021-11-22 07:18:26 +00:00
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
key: argocd.grpc_web
|
|
|
|
name: argocd-image-updater-config
|
|
|
|
optional: true
|
2021-08-16 15:23:02 +00:00
|
|
|
- name: ARGOCD_SERVER
|
2021-11-22 07:18:26 +00:00
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
key: argocd.server_addr
|
|
|
|
name: argocd-image-updater-config
|
|
|
|
optional: true
|
2021-08-16 15:23:02 +00:00
|
|
|
- name: ARGOCD_INSECURE
|
2021-11-22 07:18:26 +00:00
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
key: argocd.insecure
|
|
|
|
name: argocd-image-updater-config
|
|
|
|
optional: true
|
2021-08-16 15:23:02 +00:00
|
|
|
- name: ARGOCD_PLAINTEXT
|
2021-11-22 07:18:26 +00:00
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
key: argocd.plaintext
|
|
|
|
name: argocd-image-updater-config
|
|
|
|
optional: true
|
2021-08-16 15:23:02 +00:00
|
|
|
- name: ARGOCD_TOKEN
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
key: argocd.token
|
|
|
|
name: argocd-image-updater-secret
|
|
|
|
optional: true
|
|
|
|
- name: IMAGE_UPDATER_LOGLEVEL
|
2021-11-22 07:18:26 +00:00
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
key: log.level
|
|
|
|
name: argocd-image-updater-config
|
|
|
|
optional: true
|
|
|
|
- name: GIT_COMMIT_USER
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
key: git.user
|
|
|
|
name: argocd-image-updater-config
|
|
|
|
optional: true
|
|
|
|
- name: GIT_COMMIT_EMAIL
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
key: git.email
|
|
|
|
name: argocd-image-updater-config
|
|
|
|
optional: true
|
|
|
|
- name: IMAGE_UPDATER_KUBE_EVENTS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
key: kube.events
|
|
|
|
name: argocd-image-updater-config
|
|
|
|
optional: true
|
2021-09-16 18:59:39 +00:00
|
|
|
{{- with .Values.extraEnv }}
|
|
|
|
{{- toYaml . | nindent 10 }}
|
|
|
|
{{- end }}
|
2021-08-16 15:23:02 +00:00
|
|
|
securityContext:
|
|
|
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
|
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
2021-11-09 21:14:17 +00:00
|
|
|
{{ if .Values.metrics.enabled }}
|
|
|
|
- name: metrics
|
|
|
|
containerPort: 8081
|
|
|
|
protocol: TCP
|
|
|
|
{{- end }}
|
2021-08-16 15:23:02 +00:00
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: 8080
|
|
|
|
initialDelaySeconds: 3
|
|
|
|
periodSeconds: 30
|
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: 8080
|
|
|
|
initialDelaySeconds: 3
|
|
|
|
periodSeconds: 30
|
|
|
|
resources:
|
|
|
|
{{- toYaml .Values.resources | nindent 12 }}
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /app/config
|
2021-11-22 07:18:26 +00:00
|
|
|
name: image-updater-conf
|
2021-09-16 17:30:36 +00:00
|
|
|
- mountPath: /tmp
|
|
|
|
name: tmp-dir
|
2021-11-15 23:19:03 +00:00
|
|
|
{{- if .Values.authScripts.enabled }}
|
|
|
|
- mountPath: /scripts
|
|
|
|
name: authscripts
|
|
|
|
{{- end }}
|
2021-08-16 15:23:02 +00:00
|
|
|
volumes:
|
|
|
|
- configMap:
|
|
|
|
items:
|
|
|
|
- key: registries.conf
|
|
|
|
path: registries.conf
|
2021-11-22 07:18:26 +00:00
|
|
|
- key: git.commit-message-template
|
|
|
|
path: commit.template
|
2021-08-16 15:23:02 +00:00
|
|
|
name: argocd-image-updater-config
|
2021-11-22 07:18:26 +00:00
|
|
|
optional: true
|
|
|
|
name: image-updater-conf
|
2021-11-15 23:19:03 +00:00
|
|
|
{{- if .Values.authScripts.enabled }}
|
|
|
|
- configMap:
|
|
|
|
defaultMode: 0777
|
|
|
|
name: argocd-image-updater-authscripts
|
|
|
|
name: authscripts
|
|
|
|
{{- end }}
|
2021-09-16 17:30:36 +00:00
|
|
|
- emptyDir: {}
|
|
|
|
name: tmp-dir
|
2021-08-16 15:23:02 +00:00
|
|
|
{{- with .Values.nodeSelector }}
|
|
|
|
nodeSelector:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.affinity }}
|
|
|
|
affinity:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.tolerations }}
|
|
|
|
tolerations:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|