_homepage.tpl 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {{- define "homepage.workload" -}}
  2. workload:
  3. homepage:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: {{ .Values.homepageNetwork.hostNetwork }}
  9. containers:
  10. homepage:
  11. enabled: true
  12. primary: true
  13. imageSelector: image
  14. # While it seems that any uid/gid can be used
  15. # There was permission errors when trying to cache things.
  16. securityContext:
  17. runAsUser: 1000
  18. runAsGroup: 1000
  19. readOnlyRootFilesystem: false
  20. env:
  21. PORT: {{ .Values.homepageNetwork.webPort }}
  22. {{ with .Values.homepageConfig.additionalEnvs }}
  23. envList:
  24. {{ range $env := . }}
  25. - name: {{ $env.name }}
  26. value: {{ $env.value }}
  27. {{ end }}
  28. {{ end }}
  29. probes:
  30. liveness:
  31. enabled: true
  32. type: http
  33. port: "{{ .Values.homepageNetwork.webPort }}"
  34. path: /api/healthcheck
  35. readiness:
  36. enabled: true
  37. type: http
  38. port: "{{ .Values.homepageNetwork.webPort }}"
  39. path: /api/healthcheck
  40. startup:
  41. enabled: true
  42. type: http
  43. port: "{{ .Values.homepageNetwork.webPort }}"
  44. path: /api/healthcheck
  45. initContainers:
  46. {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
  47. "UID" 1000
  48. "GID" 1000
  49. "mode" "check"
  50. "type" "init") | nindent 8 }}
  51. {{- end -}}