Skip to content

Instantly share code, notes, and snippets.

@AndrienkoAleksandr
Last active January 9, 2020 07:37
Show Gist options
  • Save AndrienkoAleksandr/ebd888f6e70639106fb4483eb496b34a to your computer and use it in GitHub Desktop.
Save AndrienkoAleksandr/ebd888f6e70639106fb4483eb496b34a to your computer and use it in GitHub Desktop.
port-forward
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