initialize heimdall
This commit is contained in:
23
.helmignore
Normal file
23
.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
Chart.yaml
Normal file
6
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"
|
||||
17
templates/_helpers.tpl
Normal file
17
templates/_helpers.tpl
Normal file
@@ -0,0 +1,17 @@
|
||||
{{/*
|
||||
Return the name of the chart
|
||||
*/}}
|
||||
{{- define "heimdall.name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Return the full name of the release
|
||||
*/}}
|
||||
{{- define "heimdall.fullname" -}}
|
||||
{{- if .Values.fullnameOverride -}}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- printf "%s-%s" .Release.Name (include "heimdall.name" .) | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
10
templates/persistentvolumeclaims.yaml
Normal file
10
templates/persistentvolumeclaims.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: {{ include "heimdall.fullname" . }}
|
||||
spec:
|
||||
accessModes: {{ .Values.persistence.accessModes }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.persistence.size }}
|
||||
storageClassName: {{ .Values.persistence.storageClass | quote }}
|
||||
20
templates/service.yaml
Normal file
20
templates/service.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "heimdall.fullname" . }}
|
||||
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
|
||||
17
templates/servicesvc-headless.yaml
Normal file
17
templates/servicesvc-headless.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "heimdall.fullname" . }}-headless
|
||||
labels:
|
||||
app: {{ include "heimdall.name" . }}
|
||||
spec:
|
||||
clusterIP: None
|
||||
selector:
|
||||
app: {{ include "heimdall.name" . }}
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 80
|
||||
- name: https
|
||||
port: 443
|
||||
targetPort: 443
|
||||
47
templates/statefulset.yaml
Normal file
47
templates/statefulset.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: {{ include "heimdall.fullname" . }}
|
||||
labels:
|
||||
app: {{ include "heimdall.name" . }}
|
||||
spec:
|
||||
serviceName: {{ include "heimdall.fullname" . }}
|
||||
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 }}
|
||||
env:
|
||||
{{- range $key, $value := .Values.env }}
|
||||
- name: {{ $key }}
|
||||
value: "{{ $value }}"
|
||||
{{- end }}
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
- name: https
|
||||
containerPort: 443
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /config
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: config
|
||||
spec:
|
||||
accessModes: {{ .Values.persistence.accessModes }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.persistence.size }}
|
||||
{{- if .Values.persistence.storageClass }}
|
||||
storageClassName: "{{ .Values.persistence.storageClass }}"
|
||||
{{- end }}
|
||||
37
values.yaml
Normal file
37
values.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
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 variables
|
||||
env:
|
||||
PUID: "1000"
|
||||
PGID: "1000"
|
||||
TZ: "Etc/UTC"
|
||||
ALLOW_INTERNAL_REQUESTS: "false"
|
||||
Reference in New Issue
Block a user