k8wiz
Kubernetes
Easy
Commands

Which kubectl command would you use to view the current context?

Select your answer:

Show answer and explanation

Answer: kubectl config current-context

Explanation

The 'kubectl config current-context' command displays the current context, which determines which cluster kubectl communicates with. This is useful when working with multiple clusters.

Read more about Kubernetes