123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- {{- 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: 0
- runAsGroup: 0
- runAsNonRoot: false
- readOnlyRootFilesystem: false
- capabilities:
- add:
- - CHOWN
- - SETGID
- - SETUID
- 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 -}}
|