Skip to content

Instantly share code, notes, and snippets.

@xiaomi7732
Created June 14, 2022 18:38
Show Gist options
  • Save xiaomi7732/4ef6a710c1f5a4dc84ea1963132cdfb7 to your computer and use it in GitHub Desktop.
Save xiaomi7732/4ef6a710c1f5a4dc84ea1963132cdfb7 to your computer and use it in GitHub Desktop.
Hit K8s pod quickly for testing

Hit K8s pod quickly for testing

kubectl port-forward your-pod-name 8080:80

Then you can curl it locally:

curl http://localhost:8080/weatherforecast
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment