etesKubern Flashcards

1
Q

What is a Pod?

A

Smallest unit in Kubernetes

Abstraction over container

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

What is Kubernetes?

A

Open Source Container Orchestration tool

Helps you manage systems that are made up of multiple applications

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

Who developed Kubernetes?

A

Google

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

Why not just develop our own scripts to do what Kubernetes does?

A

Difficulty, human error, and some things are not even possible

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

What benefits do Orchestration Tools offer?

A

High Availability

Scalability

Disaster Recovery

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

What is a node?

A

x kuber server node?

Sometimes called Worker Nodes

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

How many applications per pod usually?

A

Usually 1, and maybe some helper containers

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

do pods get their own ip address, or containers?

A

pods

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

pods are ephemeral

A

they can die very easily

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

when a pod gets recreated what happens to its ip address?

A

It gets a new IP

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

What is a Kubernetes Service?

A

Permanent, static IP address

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

Does each pod get its own service, or each node?

A

Each pod

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

What is an external service?

A

public facing

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

what is an internal service?

A

internal facing, eg, for DBs For communicating between pods

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

What is Ingress component?

A

A way of providing https and a named domain

route traffic into the cluster

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

What is ConfigMap

A

external configuration of your application

also if you have to change the url of an DB

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

Should you put credentials into config map

A

NOOOOO

18
Q

What is Secret?

A

just like ConfigMap, but used to store secret data, like credentials

bas64 encoded

19
Q

When using volumes in K8, where can they be stored?

A

on local server

remote, cloud

20
Q

what is a cluster?

A

xxx

21
Q

Kubernettes replicates nodes

A

but they will share the same services

22
Q

a service

A

is also a load balancer

23
Q

what is a deployment?

A

a blueprint for your myapp pods, you can choose up to how many replicas are allowed too

24
Q

can you replicate DBs using Deployments?

A

No, because a DB has a state (its data), and when you re-deploy you could have multiple pods all using the same DB, which creates inconsistencies, conflicts, etc

25
Q

What should you use instead of deployment for DBs?

A

a StatefulSet

26
Q

What is a problem and solution with StatefulSets?

A

They are hard to get right, so often the DBs will be hosted outside of Kubernetes

27
Q

each node will have multiple pods

A

yerp

28
Q

What are the three node processes?

A

Container Runtime
Kublet
Kube Proxy

29
Q

Kublet services

A

interacts with both container runtime and the node itself

30
Q

Kublet

A

Starts the pod

31
Q

Kube Proxy

A

Forwards the requests between pods in a smart way

32
Q

Master Nodes

A

x

33
Q

4 Master Node proceses

A

API Server
Scheduler
Controller Manager
etcd

34
Q

API Server

A

a cluster gateway

acts as a gatekeeper for authentication

35
Q

Scheduler

A

decides where to put the pod

Uses Kublet to actually start Pod

36
Q

Controller Manager

A

Detects if nodes have died, and reschedule their restart

37
Q

Controller Manager

A

Detects cluster state changes

38
Q

etcd

A

a key value store of a cluster state

stores info for API Server, Scheduler, and Control Manager

39
Q

What data does etcd NOT store?

A

Application data

40
Q

Usually is only 1 Master Node used in production?

A

no, multiple

41
Q

Does a master node or a worker node need more resources?

A

Worker Nodes