Files
chart/community/autobrr/1.0.0/templates/_autobrr.tpl
2023-07-10 10:24:24 +00: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 -}}