Kubernetes Basics Flashcards

1
Q

May a pod be made up of / contain several apps?

A

Yes

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

Why would you use a service?

A

To expose one or more pod(s) as a coherent unit outside the cluster

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

Are pods accessible by default from the outside of the cluster by default?

A

No. Use / define a service in order to expose them

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

Are pods to be considered mortal / ephemeral?

A

Yes! If they die and you should not care.

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

How is the lifecycle of an app tied to the lifecycle of the pod containing the app?

A

They’re born and killed / die together

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

How are pods tied to nodes?

A

A single pod lives on a single node.

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

How are pods lifecycle tied to the lifecycle of its containing node?

A

If the node dies so does the pod(s) within it. The node may outlive the pods within the node, since the node may restart the pods within the node.

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

Within a Kubernetes cluster,

  • Does an app have a unique IP-address ?
  • Does a pod have a unique IP-address?
A

Pods have unique IP-adresses within the cluster and among pods on the same node.

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

Describe a Kubernetes service

A

A Kubernetes service define a logical group of pods

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

What selector is used for defining what pods go in a service?

A

The labelSelector

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

What is a kubernetes deployment?

A

A “blueprint” of your desired stack.

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

What is kubectl command for listing pods?

A

kubectl get pods

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

What is the kubectl command for listing services?

A

kubectl get services

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

Using kubectl, how does one proxy through to a Kubernetes cluster?

A

kubectl proxy

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

Say you’re experiencing more and more load and want to scale up. How would you go about increasing the number of replicas?

A

Change the “desired state” that is the deployment and apply the deployment to the Kubernetes Cluster - and let Kubernetes manage the matching to the new, desired state.

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

Say you’re experiencing more and more load and want to scale up. How would you go about increasing the number of replicas?

A

Change the “desired state” that is the deployment and apply the deployment to the Kubernetes Cluster - and let Kubernetes manage the matching to the new, desired state.

17
Q

Does services automatically load-balance to its constituent parts?

A

Oui! Yes! Ja!

18
Q

Does services automatically load-balance to its constituent parts?

A

Oui! Yes! Ja!

19
Q

Are updates to deployments versioned by Kubernetes?

A

Yes!

20
Q

Are updates to deployments versioned by Kubernetes?

A

Yes!

21
Q

How do you confirm a rolling update was successfully rolled out?

A

kubectl rollout status deployments/kubernetes-bootcamp

22
Q

What does namespacing allow?

A

[x] Sharing a cluster, for instance for “Development” and “Production”
[x]Creating restricted section within Kubernetes Cluster.

23
Q

Using kubectl, how do you list namespaces?

A

kubectl get namespaces

24
Q

What is minikube?

A

Minikube allows you to run a local, single-node Kubernetes cluster - and allows you to develop against / bug-fix Kubernetes issues.

25
Q

What is understood by a “naked” pod?

A

A pod that is not part of either A) a ReplicaSet, or B) a Deployment.

26
Q

Does a deployment entail a ReplicaSet?

A

Yes!

27
Q

Must services be created before the “backends” that the service exposes are being created?

A

Yes!

28
Q

What are the two types of Kubernetes accounts?

A

A) Service accounts

B) Normal accounts