Skip to content

andreswebs-public-images/postgresql-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

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>

Authors

Andre Silva

License

This project is licensed under the Unlicense.

About

A postgresql-client docker image for k8s deployment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •