_vikunja_api.tpl 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. envFrom:
  19. - secretRef:
  20. name: vikunja-creds
  21. - configMapRef:
  22. name: vikunja-api
  23. {{ with .Values.vikunjaConfig.additionalEnvs }}
  24. envList:
  25. {{ range $env := . }}
  26. - name: {{ $env.name }}
  27. value: {{ $env.value }}
  28. {{ end }}
  29. {{ end }}
  30. probes:
  31. liveness:
  32. enabled: true
  33. type: http
  34. port: {{ .Values.vikunjaNetwork.webPort }}
  35. path: /health
  36. readiness:
  37. enabled: true
  38. type: http
  39. port: {{ .Values.vikunjaNetwork.webPort }}
  40. path: /health
  41. startup:
  42. enabled: true
  43. type: http
  44. port: {{ .Values.vikunjaNetwork.webPort }}
  45. path: /health
  46. initContainers:
  47. {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
  48. "UID" .Values.vikunjaRunAs.user
  49. "GID" .Values.vikunjaRunAs.group
  50. "mode" "check"
  51. "type" "install") | nindent 8 }}
  52. {{- include "ix.v1.common.app.redisWait" (dict "name" "02-redis-wait"
  53. "secretName" "redis-creds") | nindent 8 }}
  54. {{- include "ix.v1.common.app.postgresWait" (dict "name" "03-postgres-wait"
  55. "secretName" "postgres-creds") | nindent 8 }}
  56. {{- end -}}