kubernetes-state/infrastructure/postgres/port-forward-db.sh
2022-06-04 17:10:05 +02:00

8 lines
207 B
Bash
Executable File

#!/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