_rust-desk-relay.tpl 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {{- define "rust-relay.workload" -}}
  2. workload:
  3. relay:
  4. enabled: true
  5. type: Deployment
  6. podSpec:
  7. hostNetwork: {{ .Values.rustNetwork.hostNetwork }}
  8. containers:
  9. relay:
  10. enabled: true
  11. primary: true
  12. imageSelector: image
  13. securityContext:
  14. runAsUser: {{ .Values.rustRunAs.user }}
  15. runAsGroup: {{ .Values.rustRunAs.group }}
  16. command:
  17. - hbbr
  18. {{ if .Values.rustConfig.allowOnlyEncryptedConnections }}
  19. args:
  20. - -k
  21. - _
  22. {{ end }}
  23. {{ with .Values.rustConfig.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: tcp
  34. port: 21117
  35. readiness:
  36. enabled: true
  37. type: tcp
  38. port: 21117
  39. startup:
  40. enabled: true
  41. type: tcp
  42. port: 21117
  43. {{- end -}}