From e4e666fd840f8183ca1dab1a9d779f2aa88e4d7d Mon Sep 17 00:00:00 2001 From: Ewall555 Date: Fri, 3 Jan 2025 13:45:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Magnus=20=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E7=AB=AF=E5=8F=A3=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 mysql、mariadb、redis、postgresql 和 sqlserver 的 targetPort 修改为固定值 - 修复了因使用变量导致的端口配置错误问题 --- charts/jumpserver/templates/magnus/service-magnus.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/jumpserver/templates/magnus/service-magnus.yaml b/charts/jumpserver/templates/magnus/service-magnus.yaml index 967d920..76e46b4 100644 --- a/charts/jumpserver/templates/magnus/service-magnus.yaml +++ b/charts/jumpserver/templates/magnus/service-magnus.yaml @@ -24,35 +24,35 @@ spec: {{- if eq .service.type "NodePort" }} nodePort: {{ .service.mysql.port }} {{- end }} - targetPort: mysql + targetPort: 33061 protocol: TCP name: mysql - port: {{ .service.mariadb.port }} {{- if eq .service.type "NodePort" }} nodePort: {{ .service.mariadb.port }} {{- end }} - targetPort: mariadb + targetPort: 33062 protocol: TCP name: mariadb - port: {{ .service.redis.port }} {{- if eq .service.type "NodePort" }} nodePort: {{ .service.redis.port }} {{- end }} - targetPort: redis + targetPort: 63790 protocol: TCP name: redis - port: {{ .service.postgresql.port }} {{- if eq .service.type "NodePort" }} nodePort: {{ .service.postgresql.port }} {{- end }} - targetPort: postgresql + targetPort: 54320 protocol: TCP name: postgresql - port: {{ .service.sqlserver.port }} {{- if eq .service.type "NodePort" }} nodePort: {{ .service.sqlserver.port }} {{- end }} - targetPort: sqlserver + targetPort: 14330 protocol: TCP name: sqlserver {{- range $port := untilStep $oraclePortStart $oraclePortEnd 1 }}