Files
chart/library/ix-dev/community/bazarr/templates/_bazarr.tpl
Stavros Kois 8542e474e6 Bazarr - Use a different endpoint for probes (#1681)
* fix bazarr probe

* faster probe
2023-10-28 22:33:28 +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: /api/swagger.json
readiness:
enabled: true
type: http
port: "{{ .Values.bazarrNetwork.webPort }}"
path: /api/swagger.json
startup:
enabled: true
type: http
port: "{{ .Values.bazarrNetwork.webPort }}"
path: /api/swagger.json
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 -}}