Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ariefrahmansyah/f9261987a6b3842c8489e28b1fdaa027 to your computer and use it in GitHub Desktop.

Select an option

Save ariefrahmansyah/f9261987a6b3842c8489e28b1fdaa027 to your computer and use it in GitHub Desktop.
psql shell
kubectl run -i --rm --tty --image=postgres:12.6 --restart=Never --env POSTGRES_PASSWORD=“${PASSWORD}” --env PGPASSWORD=“${PASSWORD}” psql-shell -- psql -h "${HOST}" -d "${DATABASE}" -U "${USER}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment