mirror of
https://github.com/jumpserver/helm-charts.git
synced 2025-08-25 18:19:42 +00:00
fix: 修正 NodePort 前后一致
This commit is contained in:
parent
c5b8634d36
commit
c5a7cfbed7
@ -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
|
||||
|
@ -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 }}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user