Big Picture Flashcards
A K8s cluster is made up of a bunch of…
linux nodes, some of which constitute the control plane and the others as worker nodes
control plane consists of…
- etcd
- api server (nexus, ‘grand central station’)
- scheduler
different parts of an app are declaratively defined in a ___ and mediated with user via a ___
yaml file, REST API
The high level K8s wrapper for a container is a…
pod, which is the smallest unit of scheduling
The wrapper for a pod is a…
deployment
In Yaml, everytime you see a section with a ‘API version’ and ‘Kind’, you are defining a…
Kubernetes Object
3 networking house rules for K8s
- all nodes can talk to each other
- all pods can talk to each other (no NAT)
- every pod gets its own IP
pod ip address is based on
the same one from associated node
why do we want to place a service in front of pods?
Because unlike pods, a service’s name and IP address are stable.
how does a k8s service’s backend know which pods to connect to?
via the label selector
3 main types of K8s services
- LoadBalander (integrates with public cloud platform)
- NodePort (cluster wide port, accessible outside cluster)
- ClusterIP (default, only accessible inside cluster)