diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml index 8926116..ec46738 100644 --- a/deploy/deployment.yaml +++ b/deploy/deployment.yaml @@ -24,12 +24,14 @@ spec: args: - --config-file=/app/conf/pgscv.yaml # env: -# - name: PGSCV_DISABLE_COLLECTORS -# value: "system" # - name: PGSCV_LISTEN_ADDRESS # value: "0.0.0.0:9890" -# - name: DATABASE_DSN -# value: "postgresql://postgres:password@127.0.0.1:5432/postgres" +# - name: PGSCV_DISABLE_COLLECTORS +# value: "system" +# - name: POSTGRES_DSN +# value: "postgres://postgres:password@127.0.0.1:5432/postgres" +# - name: PGBOUNCER_DSN +# value: "postgres://pgbouncer:password@127.0.0.1:6432/pgbouncer" ports: - name: http containerPort: 9890 @@ -93,6 +95,8 @@ metadata: data: pgscv.yaml: | listen_address: 0.0.0.0:9890 + disable_collectors: + - system services: "postgres:5432": service_type: "postgres" diff --git a/deploy/docker-compose.yaml b/deploy/docker-compose.yaml index a2c9039..2e694c1 100644 --- a/deploy/docker-compose.yaml +++ b/deploy/docker-compose.yaml @@ -11,7 +11,9 @@ services: environment: PGSCV_DISABLE_COLLECTORS: "system" PGSCV_LISTEN_ADDRESS: "0.0.0.0:9890" - DATABASE_DSN: "postgresql://postgres:password@dbhost:5432/postgres" + POSTGRES_DSN: "postgresql://pgscv:secretpassword@example.org:5432/postgres" + #PGBOUNCER_DSN: "postgresql://pgscv:secretpassword@example.org:6432/pgbouncer" + #PATRONI_URL: "http://localhost:8008" # command: # - --config-file=/app/conf/pgscv.yaml # volumes: