Last active
January 9, 2020 07:37
-
-
Save AndrienkoAleksandr/ebd888f6e70639106fb4483eb496b34a to your computer and use it in GitHub Desktop.
port-forward
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get pods -n che | |
kubectl port-forward che-blahb1321 8000 -n che | |
export CHE_POD=$(kubectl get pods -n che -o json | jq -r -j '.items[].metadata|select(.name | startswith("che")).name') && kubectl port-forward ${CHE_POD} 8000 -n che |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment