The Unified and Autonomous Development Platform
chore: use 22 as default port for separated SSH service
Robin Shen3f9d8bd491c1
diff --git a/server-product/helm/templates/service.yaml b/server-product/helm/templates/service.yamlindex 15307cc018..41e302026b 100644--- a/server-product/helm/templates/service.yaml+++ b/server-product/helm/templates/service.yaml@@ -27,7 +27,7 @@ spec:port: {{ default "80" .Values.service.ports.http }}targetPort: httpprotocol: TCP-{{- if not .Values.service.separateSSHService.enabled }}+{{- if not .Values.service.separateSSH.enabled }}- name: sshport: {{ default "22" .Values.service.ports.ssh }}targetPort: sshdiff --git a/server-product/helm/templates/ssh-service.yaml b/server-product/helm/templates/ssh-service.yamlindex acd816c9a5..775ecb5ad9 100644--- a/server-product/helm/templates/ssh-service.yaml+++ b/server-product/helm/templates/ssh-service.yaml@@ -1,5 +1,5 @@----{{ $ssh := .Values.service.separateSSHService }}+{{ $ssh := .Values.service.separateSSH }}{{- if $ssh.enabled -}}apiVersion: v1kind: Service@@ -42,7 +42,7 @@ spec:{{- end }}ports:- name: ssh- port: {{ default "6611" $ssh.port }}+ port: {{ default "22" $ssh.port }}targetPort: sshprotocol: TCP{{- if $ssh.nodePort }}diff --git a/server-product/helm/values.yaml b/server-product/helm/values.yamlindex 1919f35f70..7234c4a0aa 100644--- a/server-product/helm/values.yaml+++ b/server-product/helm/values.yaml@@ -199,11 +199,11 @@ service:# [IPv4/IPv6 dual-stack](https://kubernetes.io/docs/concepts/services-networking/dual-stack/).ipFamilies: []# Configure sepearte SSH service- separateSSHService:- # service.separateSSHService.enabled -- If separate SSH service is enabled, a separate service is created for SSH+ separateSSH:+ # service.separateSSH.enabled -- If separate SSH is enabled, a separate service is created for SSHenabled: falsetype: "ClusterIP"- port: 22+ port: ""clusterIP: ""loadBalancerIP: ""nodePort: ""