Files
charts/library/ix-dev/community/autobrr/templates/_autobrr.tpl
T
Stavros Kois 63a34d47ee NAS-122838 / 23.10 / add autobrr to community apps (#1337)
* add `autobrr` to `community` apps

* regen

* host

* Update library/ix-dev/community/autobrr/Chart.yaml

* Update library/ix-dev/community/autobrr/upgrade_strategy
2023-07-10 13:23:50 +03:00

50 lines
1.7 KiB
Smarty

{{- define "autobrr.workload" -}}
workload:
autobrr:
enabled: true
primary: true
type: Deployment
podSpec:
hostNetwork: {{ .Values.autobrrNetwork.hostNetwork }}
containers:
autobrr:
enabled: true
primary: true
imageSelector: image
securityContext:
runAsUser: {{ .Values.autobrrRunAs.user }}
runAsGroup: {{ .Values.autobrrRunAs.group }}
env:
AUTOBRR__PORT: {{ .Values.autobrrNetwork.webPort }}
AUTOBRR__HOST: "0.0.0.0"
{{ with .Values.autobrrConfig.additionalEnvs }}
envList:
{{ range $env := . }}
- name: {{ $env.name }}
value: {{ $env.value }}
{{ end }}
{{ end }}
probes:
liveness:
enabled: true
type: http
port: {{ .Values.autobrrNetwork.webPort }}
path: /api/healthz/liveness
readiness:
enabled: true
type: http
port: {{ .Values.autobrrNetwork.webPort }}
path: /api/healthz/readiness
startup:
enabled: true
type: http
port: {{ .Values.autobrrNetwork.webPort }}
path: /api/healthz/readiness
initContainers:
{{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
"UID" .Values.autobrrRunAs.user
"GID" .Values.autobrrRunAs.group
"mode" "check"
"type" "init") | nindent 8 }}
{{- end -}}