update postgres to internal dns one

This commit is contained in:
2022-01-07 15:46:25 +11:00
parent 277a2a7a71
commit 4efe2474db
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -40,8 +40,8 @@ var (
func main() {
dbConfig := config.Config{
Host: getEnvWithDefault("HOST", "home.toozhao.com"),
Port: getEnvWithDefault("PORT", "0000"),
Host: getEnvWithDefault("HOST", "new-postgres-postgresql.db.svc.cluster.local"),
Port: getEnvWithDefault("PORT", "5432"),
DBName: getEnvWithDefault("DB_NAME", "house_auctions"),
Username: getEnvWithDefault("DB_USERNAME", "someuser"),
Password: getEnvWithDefault("DB_PASSWORD", "hahah"),
+1 -1
View File
@@ -20,7 +20,7 @@ spec:
- name: DB_PASSWORD
valueFrom: {secretKeyRef: {name: database-credentials, key: password}}
- name: PORT
value: "32222"
value: "5432"
resources:
requests:
cpu: 50m