mirror of
https://github.com/jumpserver/helm-charts.git
synced 2025-09-05 17:01:39 +00:00
Merge pull request #107 from wojiushixiaobai/main
fix: 修正 NodePort 前后一致
This commit is contained in:
@@ -19,6 +19,9 @@ spec:
|
|||||||
name: web
|
name: web
|
||||||
- port: {{ .service.ssh.port }}
|
- port: {{ .service.ssh.port }}
|
||||||
targetPort: ssh
|
targetPort: ssh
|
||||||
|
{{- if eq .service.type "NodePort" }}
|
||||||
|
nodePort: {{ .service.ssh.port }}
|
||||||
|
{{- end }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: ssh
|
name: ssh
|
||||||
sessionAffinity: ClientIP
|
sessionAffinity: ClientIP
|
||||||
|
@@ -17,6 +17,9 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
{{- range $port := untilStep $magnusPortStart $magnusPortEnd 1 }}
|
{{- range $port := untilStep $magnusPortStart $magnusPortEnd 1 }}
|
||||||
- port: {{ $port }}
|
- port: {{ $port }}
|
||||||
|
{{- if eq $.Values.magnus.service.type "NodePort" }}
|
||||||
|
nodePort: {{ $port }}
|
||||||
|
{{- end }}
|
||||||
targetPort: magnus-{{ $port }}
|
targetPort: magnus-{{ $port }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: magnus-{{ $port }}
|
name: magnus-{{ $port }}
|
||||||
|
@@ -15,6 +15,9 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- port: {{ .service.rdp.port }}
|
- port: {{ .service.rdp.port }}
|
||||||
targetPort: rdp
|
targetPort: rdp
|
||||||
|
{{- if eq .service.type "NodePort" }}
|
||||||
|
nodePort: {{ .service.rdp.port }}
|
||||||
|
{{- end }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: rdp
|
name: rdp
|
||||||
sessionAffinity: ClientIP
|
sessionAffinity: ClientIP
|
||||||
|
@@ -15,6 +15,9 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- port: {{ .service.web.port }}
|
- port: {{ .service.web.port }}
|
||||||
targetPort: web
|
targetPort: web
|
||||||
|
{{- if eq .service.type "NodePort" }}
|
||||||
|
nodePort: {{ .service.web.port }}
|
||||||
|
{{- end }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: web
|
name: web
|
||||||
sessionAffinity: ClientIP
|
sessionAffinity: ClientIP
|
||||||
|
Reference in New Issue
Block a user