_pigallery2.tpl 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {{- define "pigallery.workload" -}}
  2. workload:
  3. pigallery:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: {{ .Values.pigalleryNetwork.hostNetwork }}
  9. containers:
  10. pigallery:
  11. enabled: true
  12. primary: true
  13. imageSelector: image
  14. securityContext:
  15. runAsUser: {{ .Values.pigalleryRunAs.user }}
  16. runAsGroup: {{ .Values.pigalleryRunAs.group }}
  17. envFrom:
  18. - configMapRef:
  19. name: pigallery-config
  20. {{ with .Values.pigalleryConfig.additionalEnvs }}
  21. envList:
  22. {{ range $env := . }}
  23. - name: {{ $env.name }}
  24. value: {{ $env.value }}
  25. {{ end }}
  26. {{ end }}
  27. probes:
  28. liveness:
  29. enabled: true
  30. type: http
  31. port: {{ .Values.pigalleryNetwork.webPort }}
  32. path: /heartbeat
  33. readiness:
  34. enabled: true
  35. type: http
  36. port: {{ .Values.pigalleryNetwork.webPort }}
  37. path: /heartbeat
  38. startup:
  39. enabled: true
  40. type: http
  41. port: {{ .Values.pigalleryNetwork.webPort }}
  42. path: /heartbeat
  43. initContainers:
  44. {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
  45. "UID" .Values.pigalleryRunAs.user
  46. "GID" .Values.pigalleryRunAs.group
  47. "mode" "check"
  48. "type" "install") | nindent 8 }}
  49. {{- end -}}