first commit
This commit is contained in:
commit
d7a10faf7c
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/
|
24
Chart.yaml
Normal file
24
Chart.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
apiVersion: v2
|
||||
maintainers:
|
||||
- name: Marko Oldenburg
|
||||
email: fhemdevelopment@cooltux.net
|
||||
url: https://git.cooltux.net/kubernetes/helm-charts
|
||||
name: fhem
|
||||
description: FHEM (TM) is a GPL'd perl server for house automation. It is used to automate some common tasks in the household like switching lamps / shutters / heating / etc. and to log events like temperature / humidity / power consumption.
|
||||
home: https://fhem.de
|
||||
sources:
|
||||
- https://github.com/fhem/fhem-docker
|
||||
- https://fhem.de/
|
||||
keywords:
|
||||
- fhem
|
||||
- Houseautomation
|
||||
- http
|
||||
- web
|
||||
- application
|
||||
- perl
|
||||
annotations:
|
||||
category: Houseautomation
|
||||
licenses: GPL'd
|
||||
type: application
|
||||
version: 0.4.9
|
||||
appVersion: "3.3.1-bullseye"
|
8
README.md
Normal file
8
README.md
Normal file
@ -0,0 +1,8 @@
|
||||
# FHEM Container Helm Chart
|
||||
|
||||
## Using Helm Chart
|
||||
* clone or download repository
|
||||
* helm install <NAME> </path/to/repoDir> -n <NAMESPACE> --create-namespace
|
||||
|
||||
for yout own values create a value file with your changes an install with
|
||||
* helm install <NAME> </path/to/repoDir> -f <MY_OWN_VALUEFILE>-n <NAMESPACE> --create-namespace
|
22
templates/NOTES.txt
Normal file
22
templates/NOTES.txt
Normal file
@ -0,0 +1,22 @@
|
||||
1. Get the application URL by running these commands:
|
||||
{{- if .Values.ingress.enabled }}
|
||||
{{- range $host := .Values.ingress.hosts }}
|
||||
{{- range .paths }}
|
||||
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- else if contains "NodePort" .Values.service.type }}
|
||||
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "fhem.fullname" . }})
|
||||
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
|
||||
echo http://$NODE_IP:$NODE_PORT
|
||||
{{- else if contains "LoadBalancer" .Values.service.type }}
|
||||
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
|
||||
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "fhem.fullname" . }}'
|
||||
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "fhem.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
|
||||
echo http://$SERVICE_IP:{{ .Values.service.port }}
|
||||
{{- else if contains "ClusterIP" .Values.service.type }}
|
||||
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "fhem.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
|
||||
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
|
||||
echo "Visit http://127.0.0.1:8080 to use your application"
|
||||
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
|
||||
{{- end }}
|
62
templates/_helpers.tpl
Normal file
62
templates/_helpers.tpl
Normal file
@ -0,0 +1,62 @@
|
||||
{{/*
|
||||
Expand the name of the chart.
|
||||
*/}}
|
||||
{{- define "fhem.name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create a default fully qualified app name.
|
||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||
If release name contains chart name it will be used as a full name.
|
||||
*/}}
|
||||
{{- define "fhem.fullname" -}}
|
||||
{{- if .Values.fullnameOverride }}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||
{{- if contains $name .Release.Name }}
|
||||
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create chart name and version as used by the chart label.
|
||||
*/}}
|
||||
{{- define "fhem.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Common labels
|
||||
*/}}
|
||||
{{- define "fhem.labels" -}}
|
||||
helm.sh/chart: {{ include "fhem.chart" . }}
|
||||
{{ include "fhem.selectorLabels" . }}
|
||||
{{- if .Chart.AppVersion }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
{{- end }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Selector labels
|
||||
*/}}
|
||||
{{- define "fhem.selectorLabels" -}}
|
||||
app.kubernetes.io/name: {{ include "fhem.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create the name of the service account to use
|
||||
*/}}
|
||||
{{- define "fhem.serviceAccountName" -}}
|
||||
{{- if .Values.serviceAccount.create }}
|
||||
{{- default (include "fhem.fullname" .) .Values.serviceAccount.name }}
|
||||
{{- else }}
|
||||
{{- default "default" .Values.serviceAccount.name }}
|
||||
{{- end }}
|
||||
{{- end }}
|
133
templates/deployment.yaml
Normal file
133
templates/deployment.yaml
Normal file
@ -0,0 +1,133 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "fhem.fullname" . }}
|
||||
labels:
|
||||
{{- include "fhem.labels" . | nindent 4 }}
|
||||
spec:
|
||||
{{- if not .Values.autoscaling.enabled }}
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
{{- end }}
|
||||
{{- if .Values.updateStrategy }}
|
||||
strategy:
|
||||
type: {{- toYaml .Values.updateStrategy | nindent 6 }}
|
||||
{{- end }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "fhem.selectorLabels" . | nindent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
{{- with .Values.podAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "fhem.selectorLabels" . | nindent 8 }}
|
||||
spec:
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "fhem.serviceAccountName" . }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
ports:
|
||||
- name: fhemweb
|
||||
containerPort: {{ .Values.containerPorts.fhemweb }}
|
||||
protocol: TCP
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /fhem
|
||||
port: fhemweb
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /fhem
|
||||
port: fhemweb
|
||||
volumeMounts:
|
||||
- name: fhem-data
|
||||
mountPath: /opt/fhem
|
||||
subPath: fhem/
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
env:
|
||||
- name: APT_PKGS
|
||||
value: {{ default "" .Values.aptPkgs | quote }}
|
||||
- name: CPAN_PKGS
|
||||
value: {{ default "" .Values.cpanPkgs | quote }}
|
||||
- name: PIP_PKGS
|
||||
value: {{ default "" .Values.pipPkgs | quote }}
|
||||
- name: NPM_PKGS
|
||||
value: {{ default "" .Values.npmPkgs | quote }}
|
||||
- name: LOGFILE
|
||||
value: {{ default "./log/fhem-%Y-%m-%d.log" .Values.logfile | quote }}
|
||||
- name: TELNETPORT
|
||||
value: {{ default "7072" .Values.telnetport | quote }}
|
||||
- name: FHEM_UID
|
||||
value: {{ default "6061" .Values.fhemUID | quote }}
|
||||
- name: FHEM_GID
|
||||
value: {{ default "6061" .Values.fhemGID | quote }}
|
||||
- name: FHEM_PERM_DIR
|
||||
value: {{ default "0750" .Values.fhemPermDir | quote }}
|
||||
- name: FHEM_PERM_FILE
|
||||
value: {{ default "0640" .Values.fhemPermFile | quote }}
|
||||
- name: UMASK
|
||||
value: {{ default "0037" .Values.umask | quote }}
|
||||
- name: BLUETOOTH_GID
|
||||
value: {{ default "6001" .Values.bluetoothGID | quote }}
|
||||
- name: GPIO_GID
|
||||
value: {{ default "6002" .Values.gpioGID | quote }}
|
||||
- name: I2C_GID
|
||||
value: {{ default "6003" .Values.i2cGID | quote }}
|
||||
- name: TIMEOUT
|
||||
value: {{ default "" .Values.timeout | quote }}
|
||||
- name: LANG
|
||||
value: {{ default "en_US.UTF-8" .Values.lang | quote }}
|
||||
- name: LANGUAGE
|
||||
value: {{ default "en_US:en" .Values.language | quote }}
|
||||
- name: LC_ADDRESS
|
||||
value: {{ default "de_DE.UTF-8" .Values.lcAddress | quote }}
|
||||
- name: LC_MEASUREMENT
|
||||
value: {{ default "de_DE.UTF-8" .Values.measurement | quote }}
|
||||
- name: LC_MESSAGES
|
||||
value: {{ default "en_DK.UTF-8" .Values.lcMessages | quote }}
|
||||
- name: LC_MONETARY
|
||||
value: {{ default "de_DE.UTF-8" .Values.lcMonetary | quote }}
|
||||
- name: LC_NAME
|
||||
value: {{ default "de_DE.UTF-8" .Values.lcName | quote }}
|
||||
- name: LC_NUMERIC
|
||||
value: {{ default "de_DE.UTF-8" .Values.lcNumeric | quote }}
|
||||
- name: LC_PAPER
|
||||
value: {{ default "de_DE.UTF-8" .Values.lcPaper | quote }}
|
||||
- name: LC_TELEPHONE
|
||||
value: {{ default "de_DE.UTF-8" .Values.lcTelephone | quote }}
|
||||
- name: LC_TIME
|
||||
value: {{ default "de_DE.UTF-8" .Values.lcTime | quote }}
|
||||
- name: TZ
|
||||
value: {{ default "Europe/Berlin" .Values.timezone | quote }}
|
||||
- name: CONFIGTYPE
|
||||
value: {{ default "" .Values.configtype | quote }}
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.affinity }}
|
||||
affinity:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.tolerations }}
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
volumes:
|
||||
- name: fhem-data
|
||||
{{- if .Values.persistence.enabled }}
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ include "fhem.fullname" . }}
|
||||
{{- end }}
|
||||
restartPolicy: {{ default "Always" .Values.restartPolicy | quote }}
|
28
templates/hpa.yaml
Normal file
28
templates/hpa.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
{{- if .Values.autoscaling.enabled }}
|
||||
apiVersion: autoscaling/v2beta1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: {{ include "fhem.fullname" . }}
|
||||
labels:
|
||||
{{- include "fhem.labels" . | nindent 4 }}
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: {{ include "fhem.fullname" . }}
|
||||
minReplicas: {{ .Values.autoscaling.minReplicas }}
|
||||
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
|
||||
metrics:
|
||||
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
|
||||
- type: Resource
|
||||
resource:
|
||||
name: cpu
|
||||
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
|
||||
{{- end }}
|
||||
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
|
||||
- type: Resource
|
||||
resource:
|
||||
name: memory
|
||||
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
|
||||
{{- end }}
|
||||
{{- end }}
|
61
templates/ingress.yaml
Normal file
61
templates/ingress.yaml
Normal file
@ -0,0 +1,61 @@
|
||||
{{- if .Values.ingress.enabled -}}
|
||||
{{- $fullName := include "fhem.fullname" . -}}
|
||||
{{- $svcFhemWebPort := .Values.service.ports.fhemweb -}}
|
||||
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
|
||||
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
|
||||
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||
apiVersion: networking.k8s.io/v1
|
||||
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
{{- else -}}
|
||||
apiVersion: extensions/v1beta1
|
||||
{{- end }}
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ $fullName }}
|
||||
labels:
|
||||
{{- include "fhem.labels" . | nindent 4 }}
|
||||
{{- with .Values.ingress.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
|
||||
ingressClassName: {{ .Values.ingress.className }}
|
||||
{{- end }}
|
||||
{{- if .Values.ingress.tls }}
|
||||
tls:
|
||||
{{- range .Values.ingress.tls }}
|
||||
- hosts:
|
||||
{{- range .hosts }}
|
||||
- {{ . | quote }}
|
||||
{{- end }}
|
||||
secretName: {{ .secretName }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
rules:
|
||||
{{- range .Values.ingress.hosts }}
|
||||
- host: {{ .host | quote }}
|
||||
http:
|
||||
paths:
|
||||
{{- range .paths }}
|
||||
- path: {{ .path }}
|
||||
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
|
||||
pathType: {{ .pathType }}
|
||||
{{- end }}
|
||||
backend:
|
||||
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||
service:
|
||||
name: {{ $fullName }}
|
||||
port:
|
||||
number: {{ $svcFhemWebPort }}
|
||||
{{- else }}
|
||||
serviceName: {{ $fullName }}
|
||||
servicePort: {{ $svcFhemWebPort }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
22
templates/pvc.yaml
Normal file
22
templates/pvc.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim ) -}}
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: {{ include "fhem.fullname" . }}
|
||||
labels:
|
||||
{{- include "fhem.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.storageClass | quote }}
|
||||
spec:
|
||||
accessModes:
|
||||
{{- if not (empty .Values.persistence.accessModes) }}
|
||||
{{- range .Values.persistence.accessModes }}
|
||||
- {{ . | quote }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
- {{ .Values.persistence.accessMode | quote }}
|
||||
{{- end }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.persistence.size | quote }}
|
||||
{{- end -}}
|
32
templates/service.yaml
Normal file
32
templates/service.yaml
Normal file
@ -0,0 +1,32 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "fhem.fullname" . }}
|
||||
labels:
|
||||
{{- include "fhem.labels" . | nindent 4 }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
{{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerIP)) }}
|
||||
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
|
||||
{{- end }}
|
||||
{{- if or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort") }}
|
||||
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }}
|
||||
{{- end }}
|
||||
{{- if and .Values.service.clusterIP (eq .Values.service.type "ClusterIP") }}
|
||||
clusterIP: {{ .Values.service.clusterIP }}
|
||||
{{- end }}
|
||||
{{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerSourceRanges)) }}
|
||||
loadBalancerSourceRanges: {{ .Values.service.loadBalancerSourceRanges }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- name: fhemweb
|
||||
port: {{ .Values.service.ports.fhemweb }}
|
||||
targetPort: {{ .Values.containerPorts.fhemweb }}
|
||||
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http))) }}
|
||||
nodePort: {{ .Values.service.nodePorts.fhemweb }}
|
||||
{{- end }}
|
||||
{{- if .Values.service.extraPorts }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.service.extraPorts "context" $) | nindent 4 }}
|
||||
{{- end }}
|
||||
selector:
|
||||
{{- include "fhem.selectorLabels" . | nindent 4 }}
|
12
templates/serviceaccount.yaml
Normal file
12
templates/serviceaccount.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
{{- if .Values.serviceAccount.create -}}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ include "fhem.serviceAccountName" . }}
|
||||
labels:
|
||||
{{- include "fhem.labels" . | nindent 4 }}
|
||||
{{- with .Values.serviceAccount.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
15
templates/tests/test-connection.yaml
Normal file
15
templates/tests/test-connection.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{ include "fhem.fullname" . }}-test-connection"
|
||||
labels:
|
||||
{{- include "fhem.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
"helm.sh/hook": test
|
||||
spec:
|
||||
containers:
|
||||
- name: wget
|
||||
image: busybox
|
||||
command: ['wget']
|
||||
args: ['{{ include "fhem.fullname" . }}:{{ .Values.service.port }}']
|
||||
restartPolicy: Never
|
209
values.yaml
Normal file
209
values.yaml
Normal file
@ -0,0 +1,209 @@
|
||||
# Default values for fhem.
|
||||
# This is a YAML-formatted file.
|
||||
# Declare variables to be passed into your templates.
|
||||
|
||||
replicaCount: 1
|
||||
|
||||
## @param updateStrategy Strategy to use to update Pods
|
||||
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
|
||||
## take RollingUpdate for best practices
|
||||
updateStrategy: RollingUpdate
|
||||
|
||||
image:
|
||||
repository: fhem/fhem-minimal
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: ""
|
||||
|
||||
imagePullSecrets: []
|
||||
nameOverride: ""
|
||||
fullnameOverride: ""
|
||||
|
||||
### Tweak container settings using environment variables
|
||||
## Debian APT packages: "App::Name1 App::Name2"
|
||||
aptPkgs: ""
|
||||
## Perl CPAN modules: "package1 package2"
|
||||
cpanPkgs: ""
|
||||
## Python PIP packages: "package1 package2"
|
||||
pipPkgs: ""
|
||||
## Node.js NPM packages: "package1 package2"
|
||||
npmPkgs: ""
|
||||
## Change FHEM logfile format: To set a different logfile path and format (default is ./log/fhem-%Y-%m-%d.log):
|
||||
logfile: ""
|
||||
## Change FHEM local Telnet port for health check and container restart handling: To set a different Telnet port for local connection during health check and container restart (default is 7072):
|
||||
telnetport: ""
|
||||
## Change FHEM system user ID: To set a different UID for the user fhem (default is 6061):
|
||||
fhemUID: ""
|
||||
## Change FHEM group ID: To set a different GID for the group fhem (default is 6061):
|
||||
fhemGID: ""
|
||||
## Change FHEM directory permissions: To set different directory permissions for $FHEM_DIR (default is 0750):
|
||||
fhemPermDir: ""
|
||||
## Change FHEM file permissions: To set different file permissions for $FHEM_DIR (default is 0640):
|
||||
fhemPermFile: ""
|
||||
## Change umask: To set a different umask for FHEM_UID (default is 0037):
|
||||
umask: ""
|
||||
## Change Bluetooth group ID: To set a different GID for the group bluetooth (default is 6001):
|
||||
bluetoothGID: ""
|
||||
## Change GPIO group ID: To set a different GID for the group gpio (default is 6002):
|
||||
gpioGID: ""
|
||||
## Change I2C group ID: To set a different GID for the group i2c (default is 6003):
|
||||
i2cGID: ""
|
||||
## Change shutdown timeout: To set a different setting for the timer during FHEM shutdown handling, you may add this environment variable: 10
|
||||
timeout: ""
|
||||
## Set locale: For maximum compatibility, standard locale is set to US english with some refinements towards the European standards and German defaults. This may be changed according to your needs (also see Debian Wiki for more information):
|
||||
lang: ""
|
||||
language: ""
|
||||
lcAddress: ""
|
||||
lcMeasurement: ""
|
||||
lcMessages: ""
|
||||
lcMonetary: ""
|
||||
lcName: ""
|
||||
lcNumeric: ""
|
||||
lcPaper: ""
|
||||
lcTelephone: ""
|
||||
lcTime: ""
|
||||
## Set timezone: Set a specific timezone in POSIX format: Europe/Berlin
|
||||
timezone: ""
|
||||
## Using configDB: Should you be using FHEM config type configDB, you need to change the FHEM configuration source for correct startup by setting the following environment variable: configDB
|
||||
## fhem.cfg.demo for Democonfig
|
||||
configtype: "fhem.cfg.demo"
|
||||
### ENDE Container environment variables
|
||||
|
||||
serviceAccount:
|
||||
# Specifies whether a service account should be created
|
||||
create: true
|
||||
# Annotations to add to the service account
|
||||
annotations: {}
|
||||
# The name of the service account to use.
|
||||
# If not set and create is true, a name is generated using the fullname template
|
||||
name: ""
|
||||
|
||||
podAnnotations: {}
|
||||
|
||||
podSecurityContext:
|
||||
{}
|
||||
# fsGroup: 2000
|
||||
|
||||
securityContext:
|
||||
{}
|
||||
# capabilities:
|
||||
# drop:
|
||||
# - ALL
|
||||
# readOnlyRootFilesystem: true
|
||||
# runAsNonRoot: true
|
||||
# runAsUser: 6061
|
||||
|
||||
## Enable persistence using Persistent Volume Claims
|
||||
## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
|
||||
## @param persistence.enabled Enable persistence using PVC
|
||||
## @param persistence.storageClass PVC Storage Class for DokuWiki volume
|
||||
## @param persistence.accessModes [array] PVC Access Mode for DokuWiki volume
|
||||
## @param persistence.size PVC Storage Request for DokuWiki volume
|
||||
## @param persistence.existingClaim Name of an existing PVC to be used
|
||||
## @param persistence.annotations Annotations to add to the PVC
|
||||
##
|
||||
persistence:
|
||||
enabled: false
|
||||
## Dokuwiki data Persistent Volume Storage Class
|
||||
## If defined, storageClassName: <storageClass>
|
||||
## If set to "-", storageClassName: "", which disables dynamic provisioning
|
||||
## If undefined (the default) or set to null, no storageClassName spec is
|
||||
## set, choosing the default provisioner. (gp2 on AWS, standard on
|
||||
## GKE, AWS & OpenStack)
|
||||
##
|
||||
storageClass: ""
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
size: 1Gi
|
||||
annotations: {}
|
||||
|
||||
## @param containerPorts.fhemweb Container FHEMWEB port
|
||||
##
|
||||
containerPorts:
|
||||
fhemweb: 8083
|
||||
|
||||
service:
|
||||
## @param service.type Kubernetes Service type
|
||||
## For minikube, set this to NodePort, elsewhere use LoadBalancer
|
||||
##
|
||||
type: LoadBalancer # LoadBalancer
|
||||
## @param service.loadBalancerIP Use serviceLoadBalancerIP to request a specific static IP, otherwise leave blank
|
||||
##
|
||||
loadBalancerIP: ""
|
||||
## @param service.ports.http Service HTTP port
|
||||
## @param service.ports.https Service HTTPS port
|
||||
##
|
||||
ports:
|
||||
fhemweb: 80
|
||||
##
|
||||
## @param service.nodePorts [object] Use nodePorts to request some specific ports when using NodePort
|
||||
## nodePorts:
|
||||
## http: <to set explicitly, choose port between 30000-32767>
|
||||
## https: <to set explicitly, choose port between 30000-32767>
|
||||
##
|
||||
nodePorts:
|
||||
fhemweb: ""
|
||||
## @param service.clusterIP Kubernetes service Cluster IP
|
||||
## e.g.:
|
||||
## clusterIP: None
|
||||
##
|
||||
clusterIP: ""
|
||||
## @param service.loadBalancerSourceRanges Kubernetes service Load Balancer sources
|
||||
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
|
||||
## e.g:
|
||||
## loadBalancerSourceRanges:
|
||||
## - 10.10.10.0/24
|
||||
##
|
||||
loadBalancerSourceRanges: []
|
||||
## @param service.externalTrafficPolicy Enable client source IP preservation
|
||||
## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
|
||||
##
|
||||
externalTrafficPolicy: Cluster
|
||||
## @param service.extraPorts Extra ports to expose in the service (normally used with the `sidecar` value)
|
||||
##
|
||||
extraPorts: []
|
||||
## @param service.annotations Annotations to add to the service
|
||||
##
|
||||
|
||||
ingress:
|
||||
enabled: false
|
||||
className: ""
|
||||
annotations:
|
||||
{}
|
||||
# kubernetes.io/ingress.class: nginx
|
||||
# kubernetes.io/tls-acme: "true"
|
||||
hosts:
|
||||
- host:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: ImplementationSpecific
|
||||
tls: []
|
||||
# - secretName: chart-example-tls
|
||||
# hosts:
|
||||
# - chart-example.local
|
||||
|
||||
resources:
|
||||
|
||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||
# choice for the user. This also increases chances charts run on environments with little
|
||||
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
||||
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 192Mi
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
|
||||
autoscaling:
|
||||
enabled: false
|
||||
minReplicas: 1
|
||||
maxReplicas: 3
|
||||
targetCPUUtilizationPercentage: 80
|
||||
targetMemoryUtilizationPercentage: 80
|
||||
|
||||
nodeSelector: {}
|
||||
|
||||
tolerations: []
|
||||
|
||||
affinity: {}
|
Loading…
Reference in New Issue
Block a user