Hello all!
thanks for your work first of all.
Got a question - i want to check if data will be placed to slave/master server after it’s absence.
So i want to shutdown NODE where POD is placed, i want to insert some data to DB and than check by hands that it is exists after POD was started.
SO i need to get into the psql at the PODs.
I’ve installed helm chart
helm repo add iomedstolon Stolon Helm Chart | helm_stolon
helm install psql --set superuserUsername=postgres --set superuserPassword=somepass --set replicationPassword=somereplpass iomedstolon/stolon
On the NODE i locate needed POD
crictl ps | grep keeper
9d1a68aa444ae 80a68cabe8fd9 2 days ago Running stolon 0 f39f919cbcc17 psql-stolon-keeper-0
crictl exec -it 9d1a68aa444ae bash
what command should i run next ?
Whenever i tried i get an errors
root@psql-stolon-keeper-0:/# psql
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”?
Maybe i choose the wrong POD to run the command ?
Thanks