Forward one or more local ports of a service

Listen on port specified locally, forwarding to the targetPort of the service's port with the same value in a pod selected by the service.

Authored by: AI
service_name
local_port
service_port

Command
Copy
kubectl port-forward svc/service_name local_port:service_port
Tags