Concepts Flashcards
1
Q
What is a Pod?
A
- Pod is a single instance of an application
- Pos is the smallest object that we can create in Kubernetes
- We can’t deploy containers directly in Kubernetes. Containers are encapsulated as Kubernetes object known as pods
2
Q
Can one pod contain two instances of the same container?
A
No
3
Q
Can a pod contain two containers? Like the application container and the helper container?
A
Yes, there can be a helper container that helps the application container
4
Q
How to see the list of pods in a cluster?
A
kubectl get pods
5
Q
What is the smallest unit in kubernetes?
A
Pod
6
Q
What is the Kubernetes command to deploy a docker container using the nginx image?
A
kubectl run nginx –image=nginx
7
Q
Command show all details of a pod and the containers in it and all the events that occurred in that pod?
A
kubectl describe pod nginx