fix: 修复 Magnus 服务端口配置

- 将 mysql、mariadb、redis、postgresql 和 sqlserver 的 targetPort 修改为固定值
- 修复了因使用变量导致的端口配置错误问题
This commit is contained in:
Ewall555
2025-01-03 13:45:34 +08:00
parent 65968e89b9
commit e4e666fd84

View File

@@ -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 }}