feat(infrastructure): automatic deploy

This commit is contained in:
2025-10-05 20:44:14 +02:00
parent 8e1d65a078
commit 384d5004eb
3 changed files with 17 additions and 1 deletions

View File

@@ -13,10 +13,18 @@ spec:
labels:
app: {{ .Values.app.name }}
spec:
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- name: {{ .Values.app.name }}
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 }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
ports:
- containerPort: {{ .Values.app.port }}
env:

View File

@@ -2,7 +2,7 @@
apiVersion: rabbitmq.com/v1beta1
kind: Queue
metadata:
name: {{ .Values.worker.mailQueueName }}
name: {{ .Values.worker.mailQueueName | replace "_" "-" | lower }}
namespace: {{ .Values.rabbitmq.namespace | default "rabbitmq" }}
labels:
app.kubernetes.io/managed-by: Helm

View File

@@ -13,10 +13,18 @@ spec:
labels:
app: {{ printf "%s-worker" .Values.app.name }}
spec:
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- 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 -}}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
command:
- celery
- -A