Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- let port=8083
- while [ "$1" != "" ]; do
- pod_name=$(kubectl get pods -o custom-columns='name:metadata.name' | grep ^$1 | head -n1)
- kubectl port-forward $pod_name $port:80 &
- let port++
- shift
- done
Add Comment
Please, Sign In to add comment