Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Created September 14, 2024 15:58
Show Gist options
  • Save zulhfreelancer/ea0f87dee144a8eab635d0ed89c3c6e6 to your computer and use it in GitHub Desktop.
Save zulhfreelancer/ea0f87dee144a8eab635d0ed89c3c6e6 to your computer and use it in GitHub Desktop.
How to run a temporary psql container in Kubernetes for testing/debugging?

How to run a temporary psql container in Kubernetes for testing/debugging?

$ k run psql-client --rm -i --tty --image jbergknoff/postgresql-client --command /bin/sh
/ # which psql
/usr/bin/psql

/ # psql --version
psql (PostgreSQL) 12.3

Docker image: https://hub.docker.com/r/jbergknoff/postgresql-client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment