kubernetes-state/infrastructure/postgres/port-forward-db.sh

8 lines
207 B
Bash
Raw Normal View History

2022-06-04 17:10:05 +02:00
#!/bin/bash
set -e
PGPASSWORD=$1
kubectl run postgres-client --rm --tty -i --image "bitnami/postgresql" -n postgres --env="PGPASSWORD=$PGPASSWORD" --command -- psql --host postgres-postgresql -U postgres