From 3e708bddc5ed3495e635eb9f9380ac294f8a1fc6 Mon Sep 17 00:00:00 2001 From: Lee Briggs Date: Thu, 30 Jan 2025 17:17:55 -0800 Subject: [PATCH] change port and protocol Signed-off-by: Lee Briggs --- cmd/k8s-operator/deploy/chart/templates/deployment.yaml | 4 ++-- cmd/k8s-operator/deploy/chart/values.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/k8s-operator/deploy/chart/templates/deployment.yaml b/cmd/k8s-operator/deploy/chart/templates/deployment.yaml index 034391068..3b16afabb 100644 --- a/cmd/k8s-operator/deploy/chart/templates/deployment.yaml +++ b/cmd/k8s-operator/deploy/chart/templates/deployment.yaml @@ -54,7 +54,7 @@ spec: {{- if .Values.operatorConfig.port.enabled }} ports: - containerPort: {{ .Values.operatorConfig.port.containerPort }} - protocol: TCP + protocol: UDP {{- end }} {{- with .Values.operatorConfig.resources }} resources: @@ -81,7 +81,7 @@ spec: - name: CLIENT_SECRET_FILE value: /oauth/client_secret {{- if .Values.operatorConfig.port.enabled }} - - name: PORT + - name: TS_PORT value: {{ .Values.operatorConfig.port.containerPort | quote }} {{- end }} {{- $proxyTag := printf ":%s" ( .Values.proxyConfig.image.tag | default .Chart.AppVersion )}} diff --git a/cmd/k8s-operator/deploy/chart/values.yaml b/cmd/k8s-operator/deploy/chart/values.yaml index 29777809d..3b1c99c3b 100644 --- a/cmd/k8s-operator/deploy/chart/values.yaml +++ b/cmd/k8s-operator/deploy/chart/values.yaml @@ -37,7 +37,7 @@ operatorConfig: defaultTags: - "tag:k8s-operator" - # Manual configuration of Tailscaled port + # Manual configuration of tsnet port. If unset, a random port is selected. port: enabled: false containerPort: 8080