postgres monitoring

This commit is contained in:
2021-08-21 10:43:58 +02:00
parent 7578dca854
commit 6c7ba4385c
3 changed files with 13 additions and 3 deletions

View File

@@ -26,7 +26,8 @@ spec:
protocol: TCP
env:
- name: DATA_SOURCE_NAME
value: "port=5432 host=127.0.0.1"
value: "postgresql://postgres:pg2020@localhost:5432/postgres?sslmode=disable"
#value: "port=5432 host=127.0.0.1"
- name: postgres
image: postgres
ports:
@@ -107,5 +108,10 @@ spec:
type: LoadBalancer
loadBalancerIP: 172.23.255.4
ports:
- port: 5432
- name: postgres
port: 5432
targetPort: 5432
- name: exporter
port: 9187
targetPort: 9187