61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
|
image:
|
||
|
repository: tccr.io/truecharts/openhab
|
||
|
pullPolicy: IfNotPresent
|
||
|
tag: v3.3.0@sha256:3b048f8f886b4f4cd0853bb44d59f31d2e89774cabf2b0f3f7d6887cd91938aa
|
||
|
|
||
|
service:
|
||
|
main:
|
||
|
ports:
|
||
|
main:
|
||
|
protocol: HTTP
|
||
|
port: 10169
|
||
|
https:
|
||
|
enabled: true
|
||
|
ports:
|
||
|
https:
|
||
|
protocol: HTTPS
|
||
|
enabled: true
|
||
|
port: 10170
|
||
|
|
||
|
configmap:
|
||
|
init:
|
||
|
enabled: true
|
||
|
data:
|
||
|
enable-console-logging.sh: |
|
||
|
echo 'Enabling console logging.'
|
||
|
sed -i -E 's|(<AppenderRef ref="OSGI"/>).*|\1<AppenderRef ref="STDOUT"/>|' /openhab/userdata/etc/log4j2.xml
|
||
|
|
||
|
securityContext:
|
||
|
readOnlyRootFilesystem: false
|
||
|
runAsNonRoot: false
|
||
|
|
||
|
podSecurityContext:
|
||
|
runAsUser: 0
|
||
|
runAsGroup: 0
|
||
|
|
||
|
env:
|
||
|
OPENHAB_HTTP_PORT: "{{ .Values.service.main.ports.main.port }}"
|
||
|
OPENHAB_HTTPS_PORT: "{{ .Values.service.https.ports.https.port }}"
|
||
|
|
||
|
persistence:
|
||
|
config:
|
||
|
enabled: true
|
||
|
mountPath: "/openhab/conf"
|
||
|
addons:
|
||
|
enabled: true
|
||
|
mountPath: "/openhab/addons"
|
||
|
userdata:
|
||
|
enabled: true
|
||
|
mountPath: "/openhab/userdata"
|
||
|
init:
|
||
|
enabled: true
|
||
|
mountPath: /etc/cont-init.d/enable-console-logging.sh
|
||
|
subPath: enable-console-logging.sh
|
||
|
type: custom
|
||
|
volumeSpec:
|
||
|
configMap:
|
||
|
name: '{{ printf "%v-init" (include "tc.common.names.fullname" .) }}'
|
||
|
|
||
|
portal:
|
||
|
enabled: true
|