_kavita.tpl 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {{- define "kavita.workload" -}}
  2. workload:
  3. kavita:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: false
  9. containers:
  10. kavita:
  11. enabled: true
  12. primary: true
  13. imageSelector: image
  14. securityContext:
  15. runAsUser: 0
  16. runAsGroup: 0
  17. runAsNonRoot: false
  18. readOnlyRootFilesystem: false
  19. {{ with .Values.kavitaConfig.additionalEnvs }}
  20. envList:
  21. {{ range $env := . }}
  22. - name: {{ $env.name }}
  23. value: {{ $env.value }}
  24. {{ end }}
  25. {{ end }}
  26. probes:
  27. liveness:
  28. enabled: true
  29. type: http
  30. port: 5000
  31. path: /api/health
  32. readiness:
  33. enabled: true
  34. type: http
  35. port: 5000
  36. path: /api/health
  37. startup:
  38. enabled: true
  39. type: http
  40. port: 5000
  41. path: /api/health
  42. {{- end -}}