Files
charts/library/ix-dev/community/bazarr/templates/_bazarr.tpl
T
Stavros Kois bd19e4cde4 NAS-122691 / 23.10 / Add bazarr to community train (#1308)
* Add `bazarr` to `community` train

* fix source

* add tpls

* add ci values

* add values

* add UI

* formatting
2023-07-03 14:48:22 +03:00

52 lines
1.7 KiB
Smarty

{{- define "bazarr.workload" -}}
workload:
bazarr:
enabled: true
primary: true
type: Deployment
podSpec:
hostNetwork: {{ .Values.bazarrNetwork.hostNetwork }}
containers:
bazarr:
enabled: true
primary: true
imageSelector: image
securityContext:
runAsUser: {{ .Values.bazarrRunAs.user }}
runAsGroup: {{ .Values.bazarrRunAs.group }}
command:
- /entrypoint.sh
args:
- --port
- {{ .Values.bazarrNetwork.webPort | quote }}
{{ with .Values.bazarrConfig.additionalEnvs }}
envList:
{{ range $env := . }}
- name: {{ $env.name }}
value: {{ $env.value }}
{{ end }}
{{ end }}
probes:
liveness:
enabled: true
type: http
port: "{{ .Values.bazarrNetwork.webPort }}"
path: /ping
readiness:
enabled: true
type: http
port: "{{ .Values.bazarrNetwork.webPort }}"
path: /ping
startup:
enabled: true
type: http
port: "{{ .Values.bazarrNetwork.webPort }}"
path: /ping
initContainers:
{{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
"UID" .Values.bazarrRunAs.user
"GID" .Values.bazarrRunAs.group
"mode" "check"
"type" "init") | nindent 8 }}
{{- end -}}