_linkding.tpl 1.9 KB

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