Files
feedc0de 68d31e9692
Test, publish birthday app and chart / publish-image (push) Successful in 5s
Test, publish birthday app and chart / validate (push) Successful in 4s
Test, publish birthday app and chart / publish-chart (push) Successful in 4s
Add Argo CD Helm chart release
2026-10-19 08:43:31 +02:00

87 lines
2.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: 30-birthday
labels:
app: 30-birthday
app.kubernetes.io/name: 30-birthday
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
replicas: {{ .Values.replicaCount }}
strategy:
type: Recreate
selector:
matchLabels:
app: 30-birthday
template:
metadata:
labels:
app: 30-birthday
app.kubernetes.io/name: 30-birthday
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
automountServiceAccountToken: false
securityContext:
fsGroup: 65532
fsGroupChangePolicy: OnRootMismatch
containers:
- name: 30-birthday
image: {{ printf "%s:%s" .Values.image.repository .Chart.AppVersion | quote }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: ORIGIN
value: {{ .Values.origin | quote }}
- name: DATABASE_FILE
value: /data/invites.db
- name: TRUST_AUTHENTIK
value: {{ .Values.trustAuthentik | quote }}
- name: INVITATION_PDF
value: {{ .Values.invitationPdf | quote }}
- name: INVITATION_IMAGE
value: {{ .Values.invitationImage | quote }}
{{- if .Values.adminKey.secretName }}
- name: ADMIN_KEY
valueFrom:
secretKeyRef:
name: {{ .Values.adminKey.secretName | quote }}
key: {{ .Values.adminKey.secretKey | quote }}
{{- end }}
ports:
- name: http
containerPort: 3000
readinessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 2
periodSeconds: 5
livenessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 10
periodSeconds: 15
resources:
{{- toYaml .Values.resources | nindent 12 }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: [ALL]
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 65532
runAsGroup: 65532
volumeMounts:
- name: data
mountPath: /data
- name: invitation
mountPath: /private
readOnly: true
volumes:
- name: data
persistentVolumeClaim:
claimName: {{ include "birthday.dataClaim" . | quote }}
- name: invitation
secret:
secretName: {{ .Values.secrets.invitation | quote }}