_planka.tpl 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {{- define "planka.workload" -}}
  2. workload:
  3. planka:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: {{ .Values.plankaNetwork.hostNetwork }}
  9. containers:
  10. planka:
  11. enabled: true
  12. primary: true
  13. imageSelector: image
  14. securityContext:
  15. runAsUser: 1000
  16. runAsGroup: 1000
  17. readOnlyRootFilesystem: false
  18. env:
  19. PORT: {{ .Values.plankaNetwork.webPort }}
  20. envFrom:
  21. - secretRef:
  22. name: planka
  23. - configMapRef:
  24. name: planka
  25. {{ with .Values.plankaConfig.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: http
  36. port: {{ .Values.plankaNetwork.webPort }}
  37. path: /
  38. readiness:
  39. enabled: true
  40. type: http
  41. port: {{ .Values.plankaNetwork.webPort }}
  42. path: /
  43. startup:
  44. enabled: true
  45. type: http
  46. port: {{ .Values.plankaNetwork.webPort }}
  47. path: /
  48. initContainers:
  49. {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
  50. "UID" 1000
  51. "GID" 1000
  52. "mode" "check"
  53. "type" "init") | nindent 8 }}
  54. {{- include "ix.v1.common.app.postgresWait" (dict "name" "postgres-wait"
  55. "secretName" "postgres-creds") | nindent 8 }}
  56. {{- end -}}