Practice English vocabulary for kubectl commands: getting pods, describing resources, following logs, exec into containers, and applying manifests.
0 / 5 completed
1 / 5
You want to list all pods in a specific namespace. Which kubectl command phrase is correct?
'kubectl get pods -n namespace' lists all pods in the specified namespace. 'get' is the standard kubectl verb for listing resources, and '-n' is the namespace flag.
2 / 5
You run a kubectl command that shows recent events for a pod, including warnings and errors. Which phrase is correct?
'kubectl describe pod shows events' — the describe command provides detailed information including the Events section at the bottom, which is essential for debugging.
3 / 5
You want to continuously stream a pod's log output to your terminal in real time. Which phrase is correct?
'kubectl logs follows the log stream' — using the '-f' or '--follow' flag makes kubectl logs follow (stream) the output continuously, similar to 'tail -f'.
4 / 5
You need to open an interactive shell session inside a running container. Which kubectl command phrase is correct?
'kubectl exec -it' opens an interactive terminal session inside a running container. '-i' keeps stdin open, '-t' allocates a pseudo-TTY, enabling interactive shell use.
5 / 5
You deploy a Kubernetes resource defined in a YAML file. Which phrase describes this action?
'kubectl apply -f deploys the manifest' — the apply command creates or updates resources from a YAML or JSON manifest file. It is the standard declarative deployment method.