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.
More easy Kubernetes questions
- What happens to a pod's data when it is deleted?
- Which command would you use to view events in a Kubernetes cluster?
- Which kubectl command would you use to view the current context?
- What is the purpose of the 'kubectl exec' command?
- After maintenance on a drained Kubernetes node, which command lets the scheduler place new pods on it again?
- Which kubectl command is used to view the logs of a pod?