# What is the purpose of the 'kubectl port-forward' command?

Kubernetes, Easy (Beginner), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-kubectl-port-forward-command

- A. To expose a service to the internet
- B. To forward local ports to ports on a pod for debugging or accessing applications
- C. To configure port mapping in a container
- D. To open firewall ports in the cluster

**Answer:** To forward local ports to ports on a pod for debugging or accessing applications

**Explanation:** The 'kubectl port-forward' command forwards local ports to ports on a pod. This is useful for debugging or accessing applications directly without exposing them via a Service, especially during development.
