Files
chart/library/ix-dev/community/vikunja/templates/_vikunja_api.tpl
Stavros kois e5e6c9d224 formatting
2023-11-14 23:11:50 +02:00

56 lines
1.7 KiB
Smarty

{{- define "vikunja.api" -}}
workload:
vikunja-api:
enabled: true
primary: true
type: Deployment
podSpec:
hostNetwork: false
containers:
vikunja-api:
enabled: true
primary: true
imageSelector: image
securityContext:
runAsUser: {{ .Values.vikunjaRunAs.user }}
runAsGroup: {{ .Values.vikunjaRunAs.group }}
runAsNonRoot: false
env:
# Make vikunja skip user creation
PUID: ""
PGID: ""
envFrom:
- secretRef:
name: vikunja-creds
- configMapRef:
name: vikunja-api
{{ with .Values.vikunjaConfig.additionalEnvs }}
envList:
{{ range $env := . }}
- name: {{ $env.name }}
value: {{ $env.value }}
{{ end }}
{{ end }}
probes:
liveness:
enabled: true
type: http
port: {{ .Values.vikunjaPorts.api }}
path: /health
readiness:
enabled: true
type: http
port: {{ .Values.vikunjaPorts.api }}
path: /health
startup:
enabled: true
type: http
port: {{ .Values.vikunjaPorts.api }}
path: /health
initContainers:
{{- include "ix.v1.common.app.redisWait" (dict "name" "01-redis-wait"
"secretName" "redis-creds") | nindent 8 }}
{{- include "ix.v1.common.app.postgresWait" (dict "name" "02-postgres-wait"
"secretName" "postgres-creds") | nindent 8 }}
{{- end -}}