Files
chart/library/ix-dev/community/node-red/templates/_nodered.tpl
Stavros Kois e45b9207e0 Nodered - migrate storage section (adds acl) (#1962)
* update values

* update ui

* add migration

* update tempaltes

* bump version and common
2023-12-28 12:16:08 +02:00

61 lines
2.1 KiB
Smarty

{{- define "nodered.workload" -}}
workload:
nodered:
enabled: true
primary: true
type: Deployment
podSpec:
hostNetwork: {{ .Values.noderedNetwork.hostNetwork }}
containers:
nodered:
enabled: true
primary: true
imageSelector: {{ .Values.noderedConfig.imageSelector }}
# https://github.com/node-red/node-red-docker/wiki/Permissions-and-Persistence
securityContext:
runAsUser: 1000
runAsGroup: 1000
env:
PORT: {{ .Values.noderedNetwork.webPort }}
NODE_RED_ENABLE_SAFE_MODE: {{ .Values.noderedConfig.safeMode }}
NODE_RED_ENABLE_PROJECTS: {{ .Values.noderedConfig.enableProjects }}
{{ with .Values.noderedConfig.additionalEnvs }}
envList:
{{ range $env := . }}
- name: {{ $env.name }}
value: {{ $env.value }}
{{ end }}
{{ end }}
probes:
liveness:
enabled: true
type: exec
command:
- /bin/sh
- -c
- |
NODE_OPTIONS=--dns-result-order=ipv4first node /healthcheck.js
readiness:
enabled: true
type: exec
command:
- /bin/sh
- -c
- |
NODE_OPTIONS=--dns-result-order=ipv4first node /healthcheck.js
startup:
enabled: true
type: exec
command:
- /bin/sh
- -c
- |
NODE_OPTIONS=--dns-result-order=ipv4first node /healthcheck.js
initContainers:
{{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
"UID" 1000
"GID" 1000
"mode" "check"
"type" "install") | nindent 8 }}
{{- end -}}