> For the complete documentation index, see [llms.txt](https://ibm-developer.gitbook.io/digital-developer-conference-hybrid-cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ibm-developer.gitbook.io/digital-developer-conference-hybrid-cloud/operator-workshop/lab2/lab2_expose.md).

# Expose and verify

expose the database

```
$ oc expose deploy creditdb --port=5432 --target-port=5432 --type=LoadBalancer --name my-pg-svc
```

to find the external ip address of the database

```
oc get svc
```

copy 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 postgres
```

verify database tables

```
\c example
\dt *.
```
