_mealie.tpl 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {{- define "mealie.workload" -}}
  2. workload:
  3. mealie:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: {{ .Values.mealieNetwork.hostNetwork }}
  9. containers:
  10. mealie:
  11. enabled: true
  12. primary: true
  13. imageSelector: image
  14. securityContext:
  15. runAsUser: {{ .Values.mealieRunAs.user }}
  16. runAsGroup: {{ .Values.mealieRunAs.group }}
  17. readOnlyRootFilesystem: false
  18. fixedEnv:
  19. PUID: {{ .Values.mealieRunAs.user }}
  20. envFrom:
  21. - secretRef:
  22. name: mealie
  23. - configMapRef:
  24. name: mealie
  25. {{ with .Values.mealieConfig.additionalEnvs }}
  26. envList:
  27. {{ range $env := . }}
  28. - name: {{ $env.name }}
  29. value: {{ $env.value }}
  30. {{ end }}
  31. {{ end }}
  32. probes:
  33. liveness:
  34. enabled: true
  35. type: exec
  36. command:
  37. - python
  38. - /app/mealie/scripts/healthcheck.py
  39. readiness:
  40. enabled: true
  41. type: exec
  42. command:
  43. - python
  44. - /app/mealie/scripts/healthcheck.py
  45. startup:
  46. enabled: true
  47. type: exec
  48. command:
  49. - python
  50. - /app/mealie/scripts/healthcheck.py
  51. initContainers:
  52. {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
  53. "UID" .Values.mealieRunAs.user
  54. "GID" .Values.mealieRunAs.group
  55. "mode" "check"
  56. "type" "install") | nindent 8 }}
  57. {{- include "ix.v1.common.app.postgresWait" (dict "name" "02-postgres-wait"
  58. "secretName" "postgres-creds") | nindent 8 }}
  59. {{- end -}}