_plexAutoLang.tpl 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {{- define "pal.workload" -}}
  2. workload:
  3. pal:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: false
  9. containers:
  10. pal:
  11. enabled: true
  12. primary: true
  13. imageSelector: image
  14. securityContext:
  15. runAsUser: {{ .Values.palRunAs.user }}
  16. runAsGroup: {{ .Values.palRunAs.group }}
  17. env:
  18. PLEX_URL: {{ .Values.palConfig.plexURL }}
  19. PLEX_TOKEN: {{ .Values.palConfig.plexToken }}
  20. CONTAINERIZED: "true"
  21. {{ with .Values.palConfig.additionalEnvs }}
  22. envList:
  23. {{ range $env := . }}
  24. - name: {{ $env.name }}
  25. value: {{ $env.value }}
  26. {{ end }}
  27. {{ end }}
  28. # Port is only for health checks
  29. # No web interface is available.
  30. probes:
  31. liveness:
  32. enabled: {{ not .Values.ci }}
  33. type: http
  34. port: 9880
  35. path: /health
  36. readiness:
  37. enabled: {{ not .Values.ci }}
  38. type: http
  39. port: 9880
  40. path: /health
  41. startup:
  42. enabled: {{ not .Values.ci }}
  43. type: http
  44. port: 9880
  45. path: /health
  46. initContainers:
  47. {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
  48. "UID" .Values.palRunAs.user
  49. "GID" .Values.palRunAs.group
  50. "mode" "check"
  51. "type" "init") | nindent 8 }}
  52. {{- end -}}