Skip to content

Instantly share code, notes, and snippets.

@odellt
Last active March 31, 2022 15:14
Show Gist options
  • Save odellt/ece3f4a98e1f77e66e6a7e123ee7c7e9 to your computer and use it in GitHub Desktop.
Save odellt/ece3f4a98e1f77e66e6a7e123ee7c7e9 to your computer and use it in GitHub Desktop.
Sets kubectl context to dev and port forwards to deploy/cdd-grpc on port 9000:9000
#! sh
kubectl config set-context gke_development-dbe50c4d_europe-west2_development
kubectl port-forward deploy/cdd-grpc 9000:9000 --namespace=development
#! sh
kubectl config set-context gke_production-86c1db48_southamerica-east1_production
kubectl port-forward deploy/cdd-grpc 9000:9000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment