Files
chart/library/ix-dev/community/plex-auto-languages/templates/_plexAutoLang.tpl
Stavros Kois 9cc969c246 NAS-122903 / 23.10 / Add plex-auto-languages to community train (#1349)
* Add `plex-auto-languages` to `community` train

* no icon

* typo

* exec bit

* remove host net

* remove group

* false hostNet

* fix container detection issue
2023-07-21 19:37:10 +03:00

53 lines
1.7 KiB
Smarty

{{- define "pal.workload" -}}
workload:
pal:
enabled: true
primary: true
type: Deployment
podSpec:
hostNetwork: false
containers:
pal:
enabled: true
primary: true
imageSelector: image
securityContext:
runAsUser: {{ .Values.palRunAs.user }}
runAsGroup: {{ .Values.palRunAs.group }}
env:
PLEX_URL: {{ .Values.palConfig.plexURL }}
PLEX_TOKEN: {{ .Values.palConfig.plexToken }}
CONTAINERIZED: "true"
{{ with .Values.palConfig.additionalEnvs }}
envList:
{{ range $env := . }}
- name: {{ $env.name }}
value: {{ $env.value }}
{{ end }}
{{ end }}
# Port is only for health checks
# No web interface is available.
probes:
liveness:
enabled: {{ not .Values.ci }}
type: http
port: 9880
path: /health
readiness:
enabled: {{ not .Values.ci }}
type: http
port: 9880
path: /health
startup:
enabled: {{ not .Values.ci }}
type: http
port: 9880
path: /health
initContainers:
{{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
"UID" .Values.palRunAs.user
"GID" .Values.palRunAs.group
"mode" "check"
"type" "init") | nindent 8 }}
{{- end -}}