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.
More easy Kubernetes questions
- 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?
- What is a Pod in Kubernetes?
- What is the purpose of a Kubernetes Service?
- Which command would you use to create a deployment from a YAML file?