Expose and verify
expose the database
$ oc expose deploy creditdb --port=5432 --target-port=5432 --type=LoadBalancer --name my-pg-svcto find the external ip address of the database
oc get svccopy the external ip address of the my-pg-svc service and connect to it. password is postgres
docker run -it --rm postgres psql -h <ip> -U postgresverify database tables
\c example
\dt *.Last updated
Was this helpful?