From 46beed24543994a465e5449acc1bb987e5368441 Mon Sep 17 00:00:00 2001 From: R-man3000 Date: Sun, 31 May 2026 13:53:25 +0300 Subject: move Heimdall deployment to helm chart --- apps/heimdall/templates/deployment.yaml | 46 +++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 apps/heimdall/templates/deployment.yaml (limited to 'apps/heimdall/templates/deployment.yaml') 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 }} -- cgit v1.2.3