_vikunja_frontend.tpl 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {{- define "vikunja.frontend" -}}
  2. {{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) -}}
  3. {{- $apiUrl := printf "http://%v:%v/health" $fullname .Values.vikunjaPorts.api }}
  4. workload:
  5. vikunja-frontend:
  6. enabled: true
  7. type: Deployment
  8. podSpec:
  9. hostNetwork: false
  10. containers:
  11. vikunja-frontend:
  12. enabled: true
  13. primary: true
  14. imageSelector: frontendImage
  15. securityContext:
  16. runAsUser: 101
  17. runAsGroup: 101
  18. readOnlyRootFilesystem: false
  19. envFrom:
  20. - configMapRef:
  21. name: vikunja-frontend
  22. probes:
  23. liveness:
  24. enabled: true
  25. type: http
  26. port: {{ .Values.vikunjaPorts.frontHttp }}
  27. path: /ready
  28. readiness:
  29. enabled: true
  30. type: http
  31. port: {{ .Values.vikunjaPorts.frontHttp }}
  32. path: /ready
  33. startup:
  34. enabled: true
  35. type: http
  36. port: {{ .Values.vikunjaPorts.frontHttp }}
  37. path: /ready
  38. initContainers:
  39. {{- include "vikunja.wait.init" (dict "url" $apiUrl) | indent 8 }}
  40. {{- end -}}