Skip to main content

Management Tips

Free Up Disk Space

Port Forwarding

  • Usage: kubectl port forward TYPE/NAME [LOCAL_PORT:]REMOTE_PORT 
  • LOCAL_PORT is the port on your local machine
  • REMOTE_PORT is the port on the target pod or service in the Kubernetes cluster
# For a service
kubectl port forward svc/my-service 8080:80

# For a deployment
kubectl port forward deploy/my-deployment 8080:80