65 lines
1.5 KiB
YAML
65 lines
1.5 KiB
YAML
image:
|
|
repository: tccr.io/truecharts/openhab
|
|
pullPolicy: IfNotPresent
|
|
tag: v4.0.1@sha256:53e9da0fa37e89ab10a833655c107cfbb2d7f5e0fe72958f779c7022568ebf50
|
|
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
|
|
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: configmap
|
|
objectName: init
|
|
portal:
|
|
open:
|
|
enabled: true
|
|
securityContext:
|
|
container:
|
|
readOnlyRootFilesystem: false
|
|
runAsNonRoot: false
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
workload:
|
|
main:
|
|
podSpec:
|
|
containers:
|
|
main:
|
|
probes:
|
|
liveness:
|
|
type: tcp
|
|
readiness:
|
|
type: tcp
|
|
startup:
|
|
type: tcp
|
|
env:
|
|
OPENHAB_HTTP_PORT: "{{ .Values.service.main.ports.main.port }}"
|
|
OPENHAB_HTTPS_PORT: "{{ .Values.service.https.ports.https.port }}"
|