A postgresql-client docker image for k8s deployment.
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
You need a working k8s cluster and kubectl
configured.
kubectl apply -f postgresql-client.yml
kubectl attach --namespace=postgresql-client -ti postgresql-client
psql -h <host_ip_address> -p <port> -U <user>
Andre Silva
This project is licensed under the Unlicense.