From 31ffb57fc72ebee1ce16118c41e9c703ddf351ab Mon Sep 17 00:00:00 2001 From: Philip Haupt <“der.mad.mob@gmail.com”> Date: Thu, 29 May 2025 12:34:24 +0200 Subject: [PATCH] heimdall --- heimdall/kustomization.yaml | 6 ++ heimdall/main.yaml | 110 ++++++++++++++++++++++++++++++++ heimdall/src/kustomization.yaml | 12 ++++ heimdall/src/values.yaml | 47 ++++++++++++++ 4 files changed, 175 insertions(+) create mode 100644 heimdall/kustomization.yaml create mode 100644 heimdall/main.yaml create mode 100644 heimdall/src/kustomization.yaml create mode 100644 heimdall/src/values.yaml diff --git a/heimdall/kustomization.yaml b/heimdall/kustomization.yaml new file mode 100644 index 0000000..4ae436c --- /dev/null +++ b/heimdall/kustomization.yaml @@ -0,0 +1,6 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - main.yaml \ No newline at end of file diff --git a/heimdall/main.yaml b/heimdall/main.yaml new file mode 100644 index 0000000..a2a6fc0 --- /dev/null +++ b/heimdall/main.yaml @@ -0,0 +1,110 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/instance: heimdall + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: heimdall + app.kubernetes.io/version: 2.2.2 + helm.sh/chart: heimdall-8.4.2 + name: heimdall +spec: + ports: + - name: http + port: 80 + protocol: TCP + targetPort: http + selector: + app.kubernetes.io/instance: heimdall + app.kubernetes.io/name: heimdall + type: ClusterIP +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + labels: + app.kubernetes.io/instance: heimdall + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: heimdall + app.kubernetes.io/version: 2.2.2 + helm.sh/chart: heimdall-8.4.2 + name: heimdall-config +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app.kubernetes.io/instance: heimdall + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: heimdall + app.kubernetes.io/version: 2.2.2 + helm.sh/chart: heimdall-8.4.2 + name: heimdall +spec: + replicas: 1 + revisionHistoryLimit: 3 + selector: + matchLabels: + app.kubernetes.io/instance: heimdall + app.kubernetes.io/name: heimdall + strategy: + type: Recreate + template: + metadata: + labels: + app.kubernetes.io/instance: heimdall + app.kubernetes.io/name: heimdall + spec: + automountServiceAccountToken: true + containers: + - env: + - name: PGID + value: "1000" + - name: PUID + value: "1000" + - name: TZ + value: CET + image: lscr.io/linuxserver/heimdall:v2.6.3-ls302 + imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 3 + initialDelaySeconds: 0 + periodSeconds: 10 + tcpSocket: + port: 80 + timeoutSeconds: 1 + name: heimdall + ports: + - containerPort: 80 + name: http + protocol: TCP + readinessProbe: + failureThreshold: 3 + initialDelaySeconds: 0 + periodSeconds: 10 + tcpSocket: + port: 80 + timeoutSeconds: 1 + startupProbe: + failureThreshold: 30 + initialDelaySeconds: 0 + periodSeconds: 5 + tcpSocket: + port: 80 + timeoutSeconds: 1 + volumeMounts: + - mountPath: /config + name: config + dnsPolicy: ClusterFirst + enableServiceLinks: true + serviceAccountName: default + volumes: + - name: config + persistentVolumeClaim: + claimName: heimdall-config diff --git a/heimdall/src/kustomization.yaml b/heimdall/src/kustomization.yaml new file mode 100644 index 0000000..067b1f2 --- /dev/null +++ b/heimdall/src/kustomization.yaml @@ -0,0 +1,12 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +helmCharts: + - name: heimdall + repo: https://k8s-at-home.com/charts/ + version: 8.4.2 + releaseName: heimdall + includeCRDs: true + namespace: heimdall + valuesFile: values.yaml diff --git a/heimdall/src/values.yaml b/heimdall/src/values.yaml new file mode 100644 index 0000000..3e53ed7 --- /dev/null +++ b/heimdall/src/values.yaml @@ -0,0 +1,47 @@ +# +# IMPORTANT NOTE +# +# This chart inherits from our common library chart. You can check the default values/options here: +# https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml +# + +image: + # -- image repository + repository: lscr.io/linuxserver/heimdall + # -- image tag + tag: v2.6.3-ls302 + # -- image pull policy + pullPolicy: IfNotPresent + +# -- environment variables. See more environment variables in the [heimdall documentation](https://github.com/linuxserver/docker-heimdall#parameters). +# @default -- See below +env: + # -- Set the container timezone + TZ: CET + # -- Set the container user id + PUID: "1000" + # -- Set the container group id + PGID: "1000" + +# -- Configures service settings for the chart. +# @default -- See values.yaml +service: + main: + ports: + http: + port: 80 + +ingress: + # -- Enable and configure ingress settings for the chart under this key. + # @default -- See values.yaml + main: + enabled: false + storageClass: openebs-3-replicas + accessMode: ReadWriteOnce + #size: 5Gi + +# -- Configure persistence settings for the chart under this key. +# @default -- See values.yaml +persistence: + config: + enabled: true