Big Picture Flashcards

1
Q

A K8s cluster is made up of a bunch of…

A

linux nodes, some of which constitute the control plane and the others as worker nodes

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

control plane consists of…

A
  1. etcd
  2. api server (nexus, ‘grand central station’)
  3. scheduler
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

different parts of an app are declaratively defined in a ___ and mediated with user via a ___

A

yaml file, REST API

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

The high level K8s wrapper for a container is a…

A

pod, which is the smallest unit of scheduling

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

The wrapper for a pod is a…

A

deployment

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

In Yaml, everytime you see a section with a ‘API version’ and ‘Kind’, you are defining a…

A

Kubernetes Object

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

3 networking house rules for K8s

A
  1. all nodes can talk to each other
  2. all pods can talk to each other (no NAT)
  3. every pod gets its own IP
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

pod ip address is based on

A

the same one from associated node

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

why do we want to place a service in front of pods?

A

Because unlike pods, a service’s name and IP address are stable.

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

how does a k8s service’s backend know which pods to connect to?

A

via the label selector

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

3 main types of K8s services

A
  1. LoadBalander (integrates with public cloud platform)
  2. NodePort (cluster wide port, accessible outside cluster)
  3. ClusterIP (default, only accessible inside cluster)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly