Merge pull request #107 from wojiushixiaobai/main

fix: 修正 NodePort 前后一致
This commit is contained in:
吴小白
2022-10-21 17:23:35 +08:00
committed by GitHub
4 changed files with 12 additions and 0 deletions

View File

@@ -19,6 +19,9 @@ spec:
name: web
- port: {{ .service.ssh.port }}
targetPort: ssh
{{- if eq .service.type "NodePort" }}
nodePort: {{ .service.ssh.port }}
{{- end }}
protocol: TCP
name: ssh
sessionAffinity: ClientIP

View File

@@ -17,6 +17,9 @@ spec:
ports:
{{- range $port := untilStep $magnusPortStart $magnusPortEnd 1 }}
- port: {{ $port }}
{{- if eq $.Values.magnus.service.type "NodePort" }}
nodePort: {{ $port }}
{{- end }}
targetPort: magnus-{{ $port }}
protocol: TCP
name: magnus-{{ $port }}

View File

@@ -15,6 +15,9 @@ spec:
ports:
- port: {{ .service.rdp.port }}
targetPort: rdp
{{- if eq .service.type "NodePort" }}
nodePort: {{ .service.rdp.port }}
{{- end }}
protocol: TCP
name: rdp
sessionAffinity: ClientIP

View File

@@ -15,6 +15,9 @@ spec:
ports:
- port: {{ .service.web.port }}
targetPort: web
{{- if eq .service.type "NodePort" }}
nodePort: {{ .service.web.port }}
{{- end }}
protocol: TCP
name: web
sessionAffinity: ClientIP