Skip to content

Commit

Permalink
add port-forward
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro committed Aug 12, 2024
1 parent ffacc91 commit 46d1aeb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/test/kubernetes-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,10 @@ kubectl apply -f scripts/test/postgres-deployment.yaml
cd dev && docker build -t dbt-jaffle-shop:1.0.0 -f Dockerfile.postgres_profile_docker_k8s .
kind load docker-image dbt-jaffle-shop:1.0.0

POD_NAME=$(kubectl get pods -n default -l app=postgres -o jsonpath='{.items[0].metadata.name}')

echo "$POD_NAME"

kubectl port-forward --namespace default "$POD_NAME" 5432:5432 &

kubectl get pod

0 comments on commit 46d1aeb

Please sign in to comment.