Commit 2c08721
fix: set PD_MONGO_URI explicitly for in-cluster mongo
When mongo.in_cluster is true, PD_MONGO_URI was not set in the
configmap, causing the Go app to fall back to localhost:27017
which doesn't work inside the cluster. Now uses the FQDN
mongo.<namespace>.svc.cluster.local with the replicaSet parameter.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5e2ea74 commit 2c08721
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
80 | 82 | | |
81 | | - | |
| 83 | + | |
0 commit comments