- Create an environment in Postman (you need to login to an account) (e.g.
guyk-dev
) - Follow this guide to create an API key
- Download the script
- Edit it, and update the Postman API key
chmod +x updatePostmanEnv.sh
- Now you can use it: e.g.
kubectl logs $(kubectl get pods | grep init | awk '{print $1}') -n guyk | ~/updatePostman.sh guyk-dev