Kubernetes Flashcards

1
Q

What is a Pod ?

A

Applications are deployed as Pods onto a worker node of a cluster. The Pods can contain single or multiple Docker containers

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

What is a Deployment ?

A

A Deployment is an object that manages the life cycle of a stateless, replicated application. Each replica is represented by a Pod. The replicas are distributed among the nodes of a cluster for better resilience

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

What is a Worker Node ?

A

A worker node can be either a physical or virtual machine on which you can run Pods

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

What is a Cluster ?

A

A cluster is an abstraction to manage a group/set of worker nodes together. A cluster has a Control Plane and has one or more Worker Nodes

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

What is Tilt ?

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

What is Octant ?

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

What is a Kubernetes Manifest ?

A

A Manifest file is a yaml file that describes a Deployment. It usually comprises of four sections
1. apiVersion - this the version of the schema to be used to define this object
2. kind - the kind or type of Kubernetes object that you want to create - e.g. Pod, ReplicaSet, Deployment or Service
3. metadata - details about the Object that you want to create inc. key/value pairs
4. spec - a configuration section

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

What is a Control Plane ?

A

A Control Plane is that part of the Cluster that exposes, by way of an API, a means to define, deploy and manage the life cycle of Pods. It comprises all the essential elements that implement orchestration, cluster management, scheduling and health monitoring.

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

How to start a new minikube cluster ?

A

$minikube start --cpus 2 --memory 3g --driver docker --profile polar

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

How do you list all of the Worker Nodes in the cluster ?

A

$kubectl get nodes
shows a single Worker Node which hosts the Control Plane aswell as acting as a worker node

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

How do you see the available clusters with which you can interact ?

A

$kubectl config get-contexts
to show all the clusters available to interact with

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

How to determine current context ?

A

$kubectl config current-context

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

How to switch to specific context ?

A

kubectl config use-context polar

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

How to stop a cluster ?

A

minikube stop --profile polar

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

What is a ReplicaSet ?

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

kubectl - imperative

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

kubectl - declarative

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

persistent volumes

A
19
Q

pods

A
20
Q

PVC

A
21
Q

replicasets

A
22
Q

secrets

A
23
Q

loadbalancers

A
24
Q

deployments

A
25
Q

initcontainers

A
26
Q

annotations

A
27
Q

node port service

A
28
Q

probes

A
29
Q

canary deployments

A
30
Q

cluster ip service

A
31
Q

requests & limits

A
32
Q

external name service

A
33
Q

namespaces

A
34
Q

vpa

A
35
Q

ingress service

A
36
Q

limit range

A
37
Q

daemon sets

A
38
Q

ingress ssl

A
39
Q

resource quota

A
40
Q

fluentd for logs

A
41
Q

ingress & external dns

A
42
Q

storage classes

A
43
Q

config maps

A
44
Q
A