_firefly.tpl 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {{- define "firefly.workload" -}}
  2. workload:
  3. firefly:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: {{ .Values.fireflyNetwork.hostNetwork }}
  9. containers:
  10. firefly:
  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. - FOWNER
  23. - SETUID
  24. - SETGID
  25. envFrom:
  26. - secretRef:
  27. name: firefly-config
  28. {{ with .Values.fireflyConfig.additionalEnvs }}
  29. envList:
  30. {{ range $env := . }}
  31. - name: {{ $env.name }}
  32. value: {{ $env.value | quote }}
  33. {{ end }}
  34. {{ end }}
  35. probes:
  36. liveness:
  37. enabled: true
  38. type: http
  39. path: /health
  40. port: 8080
  41. readiness:
  42. enabled: true
  43. type: http
  44. path: /health
  45. port: 8080
  46. startup:
  47. enabled: true
  48. type: http
  49. path: /health
  50. port: 8080
  51. initContainers:
  52. {{- include "ix.v1.common.app.postgresWait" (dict "name" "postgres-wait"
  53. "secretName" "postgres-creds") | nindent 8 }}
  54. {{- include "ix.v1.common.app.redisWait" (dict "name" "redis-wait"
  55. "secretName" "redis-creds") | nindent 8 }}
  56. {{- end -}}