_komga.tpl 1.8 KB

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