_roundcube.tpl 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {{- define "roundcube.workload" -}}
  2. workload:
  3. roundcube:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: false
  9. containers:
  10. roundcube:
  11. enabled: true
  12. primary: true
  13. imageSelector: image
  14. securityContext:
  15. runAsUser: 0
  16. runAsGroup: 0
  17. runAsNonRoot: false
  18. readOnlyRootFilesystem: false
  19. capabilities:
  20. add:
  21. - CHOWN
  22. - DAC_OVERRIDE
  23. - FOWNER
  24. - SETGID
  25. - SETUID
  26. envFrom:
  27. - secretRef:
  28. name: roundcube-creds
  29. - configMapRef:
  30. name: roundcube-config
  31. {{ with .Values.roundcubeConfig.additionalEnvs }}
  32. envList:
  33. {{ range $env := . }}
  34. - name: {{ $env.name }}
  35. value: {{ $env.value }}
  36. {{ end }}
  37. {{ end }}
  38. probes:
  39. liveness:
  40. enabled: true
  41. type: http
  42. path: /?ping=ping
  43. port: 80
  44. readiness:
  45. enabled: true
  46. type: http
  47. path: /?ping=ping
  48. port: 80
  49. startup:
  50. enabled: true
  51. type: http
  52. path: /?ping=ping
  53. port: 80
  54. initContainers:
  55. {{- include "ix.v1.common.app.postgresWait" (dict "name" "01-postgres-wait"
  56. "secretName" "postgres-creds") | nindent 8 }}
  57. {{- end -}}