{"tool":"kubectl","tool_display":"Kubectl","intent":"forward-port-to-pod-with-localhost-and-selected-ip","intent_display":"forward port to pod with localhost and selected ip","title":"Kubectl Command: forward port to pod with localhost and selected ip","command_string":"kubectl port-forward po/<pod_name> 8888:5000 --address localhost,<10.19.21.23>","raw_command_string":"kubectl port-forward {{[po|pods]}}/{{pod_name}} 8888:5000 --address localhost,{{10.19.21.23}}","description":"Exact CLI syntax to forward port to pod with localhost and selected ip using Kubectl.","usage_scenario":"When you need to guarantee access to a pod through specific IP while also allowing local access during service testing or troubleshooting.","scenario_context":null,"simulated_output":null,"how_to_steps":null,"inferred_category":"Kubernetes","canonical_url":"https://www.syntaxstandard.com/kubectl/forward-port-to-pod-with-localhost-and-selected-ip"}