k8wiz
Kubernetes
Easy
Commands

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

Select your answer:

Show answer and explanation

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.

Read more about Kubernetes