Sign inSign up

andreswebs/postgresql-client

By andreswebs

•Updated over 2 years ago

Image
0

100K+

andreswebs/postgresql-client repository overview

⁠postgresql-client-docker

A postgresql-client docker image for k8s deployment.

⁠Running locally

⁠Connect to a PostgreSQL database
docker run --rm -it --name postgresql-client andreswebs/postgresql-client -h <host_ip_address> -p <port> -U <user> -W

To get a shell inside the running container:

docker exec -it postgresql-client /bin/sh

⁠Running on kubernetes

⁠Prerequisites

You need a working k8s cluster and kubectl configured.

⁠Deploy the objects:
kubectl apply -f postgresql-client.yml
⁠Attach to the pod:
kubectl attach --namespace=postgresql-client -ti postgresql-client
⁠Connect to a PostgreSQL database:
psql -h <host_ip_address> -p <port> -U <user> -W

⁠Authors

Andre Silva

⁠License

This project is licensed under the Unlicense⁠.

Tag summary

Content type

Image

Digest

sha256:fa85f600a…

Size

5.3 MB

Last updated

over 2 years ago

docker pull andreswebs/postgresql-client