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
Brought to you by Warp, a free terminal reimagined to work like a modern app.
service_name
local_port
service_port

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