Add workflow & helm
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 31s

This commit is contained in:
2025-05-30 09:38:11 +02:00
parent 5af815d99f
commit 1e3f62d3c4
4 changed files with 140 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}
spec:
replicas: 1
revisionHistoryLimit: 0
strategy:
type: {{ .Values.deployment.strategy }}
selector:
matchLabels:
pod: {{ .Release.Name }}
template:
metadata:
labels:
pod: {{ .Release.Name }}
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
containers:
- name: {{ .Release.Name }}
image: "{{ .Values.deployment.image.repository }}:{{ .Values.deployment.image.tag }}"
imagePullPolicy: {{ .Values.deployment.image.pullPolicy }}
env:
{{ range $envName, $envValue := .Values.deployment.env }}
- name: {{ $envName | quote}}
value: {{ $envValue | quote}}
{{ end }}
{{- if .Values.deployment.resources.enable }}
resources:
{{- toYaml .Values.deployment.resources | nindent 12 }}
{{- end }}