Skip to content

fix(info): 支持 globals.yaml 全局数据库地址查询并修复直连 SSL 问题#3

Merged
cuisongliu merged 1 commit intolabring-sigs:mainfrom
bxy4543:main
Apr 14, 2026
Merged

fix(info): 支持 globals.yaml 全局数据库地址查询并修复直连 SSL 问题#3
cuisongliu merged 1 commit intolabring-sigs:mainfrom
bxy4543:main

Conversation

@bxy4543
Copy link
Copy Markdown
Contributor

@bxy4543 bxy4543 commented Apr 14, 2026

  • 优先读取 /root/.sealos/cloud/values/globals.yaml 中的 global.featureConfigs.globalDatabase.uri
  • 非 k8s.svc 地址直接直连查询用户 UID
  • k8s.svc 地址解析为 Service ClusterIP 和端口后再直连查询
  • globals.yaml 不存在或未配置时保持原有 pod 内查询逻辑
  • 直连数据库若未配置 sslmode 默认补齐为 disable
  • 遇到 "SSL is not enabled on the server" 时自动以 sslmode=disable 重试

  - 优先读取 /root/.sealos/cloud/values/globals.yaml 中的 global.featureConfigs.globalDatabase.uri
  - 非 k8s.svc 地址直接直连查询用户 UID
  - k8s.svc 地址解析为 Service ClusterIP 和端口后再直连查询
  - globals.yaml 不存在或未配置时保持原有 pod 内查询逻辑
  - 直连数据库若未配置 sslmode 默认补齐为 disable
  - 遇到 "SSL is not enabled on the server" 时自动以 sslmode=disable 重试
@cuisongliu cuisongliu merged commit 7d257a6 into labring-sigs:main Apr 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants