summaryrefslogtreecommitdiff
path: root/apps/heimdall/templates/deployment.yaml
diff options
context:
space:
mode:
authorR-man3000 <rasmus.luha@gmail.com>2026-05-31 13:53:25 +0300
committerR-man3000 <rasmus.luha@gmail.com>2026-05-31 13:53:25 +0300
commit46beed24543994a465e5449acc1bb987e5368441 (patch)
tree9f7a3be1065f5e39069e6f8fa8f942027340ce47 /apps/heimdall/templates/deployment.yaml
parent974d4457148e9a9ff3a0231eece663d04faaf16d (diff)
move Heimdall deployment to helm chart
Diffstat (limited to 'apps/heimdall/templates/deployment.yaml')
-rw-r--r--apps/heimdall/templates/deployment.yaml46
1 files changed, 46 insertions, 0 deletions
diff --git a/apps/heimdall/templates/deployment.yaml b/apps/heimdall/templates/deployment.yaml
new file mode 100644
index 0000000..97a4f5f
--- /dev/null
+++ b/apps/heimdall/templates/deployment.yaml
@@ -0,0 +1,46 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: {{ include "heimdall.name" . }}
+ namespace: {{ .Release.Namespace }}
+ labels:
+ {{- include "heimdall.labels" . | nindent 4 }}
+spec:
+ replicas: {{ .Values.replicaCount }}
+ selector:
+ matchLabels:
+ {{- include "heimdall.selectorLabels" . | nindent 6 }}
+ template:
+ metadata:
+ labels:
+ {{- include "heimdall.selectorLabels" . | nindent 8 }}
+ spec:
+ containers:
+ - name: {{ .Chart.Name }}
+ image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
+ imagePullPolicy: {{ .Values.image.pullPolicy }}
+ ports:
+ - containerPort: 80
+ protocol: TCP
+ env:
+ - name: PUID
+ value: {{ .Values.env.puid | quote }}
+ - name: PGID
+ value: {{ .Values.env.pgid | quote }}
+ - name: APP_URL
+ value: {{ .Values.env.appUrl | quote }}
+ volumeMounts:
+ - name: config
+ mountPath: /config
+ {{- with .Values.resources }}
+ resources:
+ {{- toYaml . | nindent 12 }}
+ {{- end }}
+ volumes:
+ - name: config
+ {{- if .Values.persistence.enabled }}
+ persistentVolumeClaim:
+ claimName: {{ include "heimdall.name" . }}-pvc
+ {{- else }}
+ emptyDir: {}
+ {{- end }}