feat(infrastructure): automatic deploy

This commit is contained in:
2025-10-05 18:39:00 +02:00
parent bda4cafcf6
commit 35e2ca6a72

View File

@@ -1,20 +1,20 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: {{ .Values.worker.name }} name: {{ printf "%s-worker" .Values.app.name }}
spec: spec:
replicas: {{ .Values.worker.replicas }} replicas: {{ .Values.worker.replicas }}
revisionHistoryLimit: 3 revisionHistoryLimit: 3
selector: selector:
matchLabels: matchLabels:
app: {{ .Values.worker.name }} app: {{ printf "%s-worker" .Values.app.name }}
template: template:
metadata: metadata:
labels: labels:
app: {{ .Values.worker.name }} app: {{ printf "%s-worker" .Values.app.name }}
spec: spec:
containers: containers:
- name: {{ .Values.worker.name }} - name: {{ printf "%s-worker" .Values.app.name }}
image: "{{- if .Values.image.digest -}}{{ .Values.image.repository }}@{{ .Values.image.digest }}{{- else -}}{{ .Values.image.repository }}:{{ default "latest" .Values.image.tag }}{{- end -}}" image: "{{- if .Values.image.digest -}}{{ .Values.image.repository }}@{{ .Values.image.digest }}{{- else -}}{{ .Values.image.repository }}:{{ default "latest" .Values.image.tag }}{{- end -}}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
command: command: