Concepts Flashcards

1
Q

What is a Pod?

A
  1. Pod is a single instance of an application
  2. Pos is the smallest object that we can create in Kubernetes
  3. We can’t deploy containers directly in Kubernetes. Containers are encapsulated as Kubernetes object known as pods
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Can one pod contain two instances of the same container?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to see the list of pods in a cluster?

A

kubectl get pods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the smallest unit in kubernetes?

A

Pod

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the Kubernetes command to deploy a docker container using the nginx image?

A

kubectl run nginx –image=nginx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly