initialize heimdall
This commit is contained in:
23
helm/.helmignore
Normal file
23
helm/.helmignore
Normal file
@@ -0,0 +1,23 @@
|
||||
# Patterns to ignore when building packages.
|
||||
# This supports shell glob matching, relative path matching, and
|
||||
# negation (prefixed with !). Only one pattern per line.
|
||||
.DS_Store
|
||||
# Common VCS dirs
|
||||
.git/
|
||||
.gitignore
|
||||
.bzr/
|
||||
.bzrignore
|
||||
.hg/
|
||||
.hgignore
|
||||
.svn/
|
||||
# Common backup files
|
||||
*.swp
|
||||
*.bak
|
||||
*.tmp
|
||||
*.orig
|
||||
*~
|
||||
# Various IDEs
|
||||
.project
|
||||
.idea/
|
||||
*.tmproj
|
||||
.vscode/
|
||||
6
helm/Chart.yaml
Normal file
6
helm/Chart.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: heimdall
|
||||
description: A Helm chart for Heimdall (linuxserver/heimdall)
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "2.7.4"
|
||||
7
helm/templates/_helpers.tpl
Normal file
7
helm/templates/_helpers.tpl
Normal file
@@ -0,0 +1,7 @@
|
||||
{{ define "heimdall.name" -}}
|
||||
{{ .Chart.Name | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{ define "heimdall.environment" -}}
|
||||
{{ printf "environment-%s" .Chart.Name | trunc 51 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
9
helm/templates/configmap.yaml
Normal file
9
helm/templates/configmap.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ include "heimdall.environment" . }}
|
||||
data:
|
||||
PGID: {{ .Values.environment.PGID | quote }}
|
||||
PUID: {{ .Values.environment.PUID | quote }}
|
||||
TZ: {{ .Values.environment.TIME_ZONE | quote }}
|
||||
ALLOW_INTERNAL_REQUESTS: {{ .Values.environment.ALLOW_INTERNAL_REQUESTS | quote }}
|
||||
20
helm/templates/service.yaml
Normal file
20
helm/templates/service.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "heimdall.name" . }}
|
||||
labels:
|
||||
app: {{ include "heimdall.name" . }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
{{- if and .Values.service.loadBalancerIP (ne .Values.service.loadBalancerIP "") }}
|
||||
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
|
||||
{{- end }}
|
||||
selector:
|
||||
app: {{ include "heimdall.name" . }}
|
||||
ports:
|
||||
- name: http
|
||||
port: {{ .Values.service.portHttp }}
|
||||
targetPort: 80
|
||||
- name: https
|
||||
port: {{ .Values.service.portHttps }}
|
||||
targetPort: 443
|
||||
64
helm/templates/statefulset.yaml
Normal file
64
helm/templates/statefulset.yaml
Normal file
@@ -0,0 +1,64 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: {{ include "heimdall.name" . }}
|
||||
labels:
|
||||
app: {{ include "heimdall.name" . }}
|
||||
spec:
|
||||
serviceName: {{ include "heimdall.name" . }}
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ include "heimdall.name" . }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ include "heimdall.name" . }}
|
||||
spec:
|
||||
containers:
|
||||
- name: heimdall
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: {{ include "heimdall.environment" . }}
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
- name: https
|
||||
containerPort: 443
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /config
|
||||
{{- if .Values.resources }}
|
||||
resources:
|
||||
{{- if .Values.resources.requests }}
|
||||
requests:
|
||||
{{- if .Values.resources.requests.cpu }}
|
||||
cpu: "{{ .Values.resources.requests.cpu }}"
|
||||
{{- end }}
|
||||
{{- if .Values.resources.requests.memory }}
|
||||
memory: "{{ .Values.resources.requests.memory }}"
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.resources.limits }}
|
||||
limits:
|
||||
{{- if .Values.resources.limits.cpu }}
|
||||
cpu: "{{ .Values.resources.limits.cpu }}"
|
||||
{{- end }}
|
||||
{{- if .Values.resources.limits.memory }}
|
||||
memory: "{{ .Values.resources.limits.memory }}"
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: data
|
||||
spec:
|
||||
accessModes: {{ .Values.persistence.accessModes }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.persistence.size }}
|
||||
{{- if and .Values.persistence.storageClass (ne .Values.persistence.storageClass "") }}
|
||||
storageClassName: {{ .Values.persistence.storageClass | quote }}
|
||||
{{- end }}
|
||||
36
helm/values.yaml
Normal file
36
helm/values.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
replicaCount: 1
|
||||
|
||||
image:
|
||||
repository: lscr.io/linuxserver/heimdall
|
||||
tag: 2.7.4
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
||||
portHttp: 80
|
||||
portHttps: 443
|
||||
|
||||
persistence:
|
||||
enabled: true
|
||||
size: 1Gi
|
||||
storageClass:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: "100m"
|
||||
memory: "128Mi"
|
||||
limits:
|
||||
cpu: "250m"
|
||||
memory: "256Mi"
|
||||
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
affinity: []
|
||||
|
||||
environment:
|
||||
PGID: 1000
|
||||
PUID: 1000
|
||||
ALLOW_INTERNAL_REQUESTS: false
|
||||
TIME_ZONE: "Etc/UTC"
|
||||
Reference in New Issue
Block a user