Which kubectl commands do you know?
Asked at
AI answer
For day-to-day work, I know commands such as: kubectl get — list resources; describe — get details and events; logs — view container logs; exec — run a command in a container; apply and delete — apply or delete a manifest; edit — modify a resource; rollout status/history/undo — check, view the history of, or roll back an update; scale — change the number of replicas; config get-contexts/use-context — check and switch contexts. For example, kubectl get pods -n app lists the pods in the app namespace.
Also asked at RWB
- Why did you decide to change jobs / leave your current company?
- What is the key difference between TCP and UDP?
- What is the difference between git merge and git rebase? When should each approach be used?
- What is an inode in Linux?
- Which command is used to determine the route of a packet from your device to the target host?
Similar questions
- What are the main Kubernetes commands you know?
- What are node labels in Kubernetes, and how do you work with them?
- Name the main basic components of Kubernetes. What does a cluster consist of, and what is each component responsible for?
- How does RBAC work in Kubernetes? And how can you give an application pod access to the Kubernetes API (for example, to list pods)?
- Where is the internal configuration of the Kubernetes cluster itself stored (not the workloads running on it)?