Files
chart/library/ix-dev/community/rust-desk/templates/_rust-desk-relay.tpl
Stavros Kois 8424616d0e NAS-123927 / 24.04 / Add rust-desk to community train (#1512)
* Add `rust-desk` to `community` train

* typo

* fix ports

* fix few things

* add ui

* no portal

* add opton for onyl encrypted conns

* typo

* fix strateg

* fix flake
2023-09-08 23:12:42 +03:00

44 lines
1.1 KiB
Smarty

{{- define "rust-relay.workload" -}}
workload:
relay:
enabled: true
type: Deployment
podSpec:
hostNetwork: {{ .Values.rustNetwork.hostNetwork }}
containers:
relay:
enabled: true
primary: true
imageSelector: image
securityContext:
runAsUser: {{ .Values.rustRunAs.user }}
runAsGroup: {{ .Values.rustRunAs.group }}
command:
- hbbr
{{ if .Values.rustConfig.allowOnlyEncryptedConnections }}
args:
- -k
- _
{{ end }}
{{ with .Values.rustConfig.additionalEnvs }}
envList:
{{ range $env := . }}
- name: {{ $env.name }}
value: {{ $env.value }}
{{ end }}
{{ end }}
probes:
liveness:
enabled: true
type: tcp
port: 21117
readiness:
enabled: true
type: tcp
port: 21117
startup:
enabled: true
type: tcp
port: 21117
{{- end -}}