_logseq.tpl 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {{- define "logseq.workload" -}}
  2. workload:
  3. logseq:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: {{ .Values.logseqNetwork.hostNetwork }}
  9. containers:
  10. logseq:
  11. enabled: true
  12. primary: true
  13. imageSelector: image
  14. securityContext:
  15. runAsUser: {{ .Values.logseqRunAs.user }}
  16. runAsGroup: {{ .Values.logseqRunAs.group }}
  17. readOnlyRootFilesystem: false
  18. {{ with .Values.logseqConfig.additionalEnvs }}
  19. envList:
  20. {{ range $env := . }}
  21. - name: {{ $env.name }}
  22. value: {{ $env.value }}
  23. {{ end }}
  24. {{ end }}
  25. probes:
  26. {{- $protocol := "http" -}}
  27. {{- if .Values.logseqNetwork.certificateID -}}
  28. {{- $protocol = "https" -}}
  29. {{- end }}
  30. liveness:
  31. enabled: true
  32. type: {{ $protocol }}
  33. port: {{ .Values.logseqNetwork.webPort }}
  34. path: /health
  35. readiness:
  36. enabled: true
  37. type: {{ $protocol }}
  38. port: {{ .Values.logseqNetwork.webPort }}
  39. path: /health
  40. startup:
  41. enabled: true
  42. type: {{ $protocol }}
  43. port: {{ .Values.logseqNetwork.webPort }}
  44. path: /health
  45. {{- end -}}