Review questions Flashcards

1
Q

A pod requires a Replication Controller in order to run.

A

False

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

In the manifest, you define a pod and then a Replication Controller creates a template that it then uses to create the replicas.

A

False

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

If you scale your replication controller with “–replicas=0”, the current pods will remain but when they crash they will not be revived.

A

False

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

What is the difference between a ClusterIP service and a NodePort service?

A

ClusterIP:

  • The default type of service, it creates a virtual IP to enable internal communication between different pods within the cluster.
  • It can only be accessed internally at the ClusterIP:Port

NodePort:

  • Exposes the node externally at the NodePort (to users that are on the same network as the node)
  • It can be accessed at NodeIP:NodePort
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are endpoints?

A

They track the IP addresses of the Kubernetes objects that the service sends traffic to. In other words, these are the target objects, in our case the pods (cannot be a loopback address or a virtual IP).

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

How to get more information on the services you have deployed?

A

kubectl get service -o wide

kubectl describe service

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

How can you create and run pods?

A
kubectl run (image, ContainerPort, label...)
kubectl create -f
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the purpose of Labels and Selectors?

A

Organize and categorize your cluster

Schedule and load balance traffic

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

What is the difference between a Deployment and Replication Controller?

A

Deployments use ReplicaSets (the next generation of RC) to keep the pods running

Deployments support rolling updates and rollbacks, rollouts can be paused

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

What is the difference between a ReplicaSet and a Replication Controller?

A

ReplicaSet is the next generation of Replication Controller, which implies it has more features.

ReplicaSet uses set-based selectors in addition to equality-based selectors

ReplicaSet is created by deployment by default

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

Difference between set-based and equality-based selectors

A

EB Selectors:

  • Easy to use
  • Less powerful
  • 1 key can only have 1 value
  • =, ==, !=

SB Selectors:

  • Complex
  • More powerful
  • 1 key can have more than 1 values
  • in, notin, exists
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the use cases of selectors?

A

Application name
Location
Resources

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

Similarity between set-based and equality-based selectors

A

Use to select specific Kubernetes objects

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

Which of the following best describes the function of the Kubernetes Control Plane?

A

Controls the cluster and regulates communication with different Kubernetes elements

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