_transmission.tpl 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {{- define "transmission.workload" -}}
  2. workload:
  3. transmission:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: {{ .Values.transmissionNetwork.hostNetwork }}
  9. containers:
  10. transmission:
  11. enabled: true
  12. primary: true
  13. imageSelector: image
  14. securityContext:
  15. runAsUser: {{ .Values.transmissionRunAs.user }}
  16. runAsGroup: {{ .Values.transmissionRunAs.group }}
  17. {{ with .Values.transmissionConfig.additionalEnvs }}
  18. envList:
  19. {{ range $env := . }}
  20. - name: {{ $env.name }}
  21. value: {{ $env.value }}
  22. {{ end }}
  23. {{ end }}
  24. envFrom:
  25. - configMapRef:
  26. name: transmission-config
  27. probes:
  28. liveness:
  29. enabled: true
  30. type: tcp
  31. port: {{ .Values.transmissionNetwork.webPort }}
  32. readiness:
  33. enabled: true
  34. type: tcp
  35. port: {{ .Values.transmissionNetwork.webPort }}
  36. startup:
  37. enabled: true
  38. type: tcp
  39. port: {{ .Values.transmissionNetwork.webPort }}
  40. initContainers:
  41. {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
  42. "UID" .Values.transmissionRunAs.user
  43. "GID" .Values.transmissionRunAs.group
  44. "mode" "check"
  45. "type" "install") | nindent 8 }}
  46. {{- end -}}