etesKubern Flashcards

(41 cards)

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

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?

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
What should you use instead of deployment for DBs?
a StatefulSet
26
What is a problem and solution with StatefulSets?
They are hard to get right, so often the DBs will be hosted outside of Kubernetes
27
each node will have multiple pods
yerp
28
What are the three node processes?
Container Runtime Kublet Kube Proxy
29
Kublet services
interacts with both container runtime and the node itself
30
Kublet
Starts the pod
31
Kube Proxy
Forwards the requests between pods in a smart way
32
Master Nodes
x
33
4 Master Node proceses
API Server Scheduler Controller Manager etcd
34
API Server
a cluster gateway acts as a gatekeeper for authentication
35
Scheduler
decides where to put the pod Uses Kublet to actually start Pod
36
Controller Manager
Detects if nodes have died, and reschedule their restart
37
Controller Manager
Detects cluster state changes
38
etcd
a key value store of a cluster state stores info for API Server, Scheduler, and Control Manager
39
What data does etcd NOT store?
Application data
40
Usually is only 1 Master Node used in production?
no, multiple
41
Does a master node or a worker node need more resources?
Worker Nodes