_vikunja_api.tpl 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {{- define "vikunja.api" -}}
  2. workload:
  3. vikunja-api:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: false
  9. containers:
  10. vikunja-api:
  11. enabled: true
  12. primary: true
  13. imageSelector: image
  14. securityContext:
  15. runAsUser: {{ .Values.vikunjaRunAs.user }}
  16. runAsGroup: {{ .Values.vikunjaRunAs.group }}
  17. runAsNonRoot: false
  18. env:
  19. # Make vikunja skip user creation
  20. PUID: ""
  21. PGID: ""
  22. envFrom:
  23. - secretRef:
  24. name: vikunja-creds
  25. - configMapRef:
  26. name: vikunja-api
  27. {{ with .Values.vikunjaConfig.additionalEnvs }}
  28. envList:
  29. {{ range $env := . }}
  30. - name: {{ $env.name }}
  31. value: {{ $env.value }}
  32. {{ end }}
  33. {{ end }}
  34. probes:
  35. liveness:
  36. enabled: true
  37. type: http
  38. port: {{ .Values.vikunjaPorts.api }}
  39. path: /health
  40. readiness:
  41. enabled: true
  42. type: http
  43. port: {{ .Values.vikunjaPorts.api }}
  44. path: /health
  45. startup:
  46. enabled: true
  47. type: http
  48. port: {{ .Values.vikunjaPorts.api }}
  49. path: /health
  50. initContainers:
  51. {{- include "ix.v1.common.app.redisWait" (dict "name" "01-redis-wait"
  52. "secretName" "redis-creds") | nindent 8 }}
  53. {{- include "ix.v1.common.app.postgresWait" (dict "name" "02-postgres-wait"
  54. "secretName" "postgres-creds") | nindent 8 }}
  55. {{- end -}}