You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the bitnami postresql (that hold pgwatch2_metrics) instance uses a persistent storage class.
So the first time you create the helm, there is no problem.
helm install pgwatch2 .
if you check, you can see that a pvc 'data-pgwatch2-postgresql-0' is created
kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
data-pgwatch2-postgresql-0 Bound pvc-67f4dfca-ad54-4ed3-aa8a-482e3f4c8e50 8Gi RWO standard-rwo 31m
then remove the component:
helm delete pgwatch2
re-check the pvc
kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
data-pgwatch2-postgresql-0 Bound pvc-67f4dfca-ad54-4ed3-aa8a-482e3f4c8e50 8Gi RWO standard-rwo 31m
as you can see, it is still there.
now, try to recreate the helm
helm install pgwatch2 .
you will see that pgwatch2 can't be created
pgwatch2-bootstrap1 connection NOT OK. sleeping 1s...
then inside the postgresql pod, try to connect to the db :
I have no name!@pgwatch2-postgresql-0:/$ env |grep PASSWORD
POSTGRES_PASSWORD=MVDjvJRTWB
I have no name!@pgwatch2-postgresql-0:/$ export PGPASSWORD=MVDjvJRTWB
I have no name!@pgwatch2-postgresql-0:/$ psql -U postgres
psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: FATAL: password authentication failed for user "postgres"
I have no name!@pgwatch2-postgresql-0:/$ ls
why :
it is because of the persistent volume. the db has been created with the previous password (of the first run). So it can't connect to the db.
Solution
To solve the problem, you have to drop the pvc
kubectl delete pvc/data-pgwatch2-postgresql-0
and now you can recreate the helm.
I think the pvc should not be persistent.
The text was updated successfully, but these errors were encountered:
Description
the bitnami postresql (that hold pgwatch2_metrics) instance uses a persistent storage class.
So the first time you create the helm, there is no problem.
helm install pgwatch2 .
if you check, you can see that a pvc 'data-pgwatch2-postgresql-0' is created
then remove the component:
re-check the pvc
as you can see, it is still there.
now, try to recreate the helm
helm install pgwatch2 .
you will see that pgwatch2 can't be created
then inside the postgresql pod, try to connect to the db :
why :
it is because of the persistent volume. the db has been created with the previous password (of the first run). So it can't connect to the db.
Solution
To solve the problem, you have to drop the pvc
and now you can recreate the helm.
I think the pvc should not be persistent.
The text was updated successfully, but these errors were encountered: