Kubernetes Fundamentals Flashcards
Kubernetes is often used as a ______, which means that it is spanned across multiple servers that work on different tasks and to distribute the load of a system.
Cluster
Name the two types of server nodes that make up a Kubernetes Cluster.
1) Control plane nodes
2) Worker nodes
What does the control plane node do?
Control plane nodes contain various components which manage the cluster and control various tasks, such as deployment, scheduling and self-healing.
What does the worker node do?
Applications run on the worker node. Their behavior is controlled by the control plane node.
Which services are typically hosted on the control plane node?
1) kube-apiserver
2) kube-scheduler
3) kube-controller-manager
4) etcd
5) cloud-controller-manager
Which services are typically hosted on the worker node?
1) container runtime
2) kubelet
3) kube-proxy
What is a Kubernetes namespace?
A Kubernetes namespace can be used to divide a cluster into multiple virtual clusters, which can be used for multi-tenancy when multiple teams share a cluster.
The ________ is the centerpiece of Kubernetes. All other components interact with it and this is where users would access the cluster.
kube-apiserver
________ is a database which holds the state of a cluster.
etcd
When a new workload should be scheduled, the __________ chooses a worker node that could fit, based on different properties like CPU and memory.
kube-scheduler
The _____________ contains different non-terminating control loops that manage the state of the cluster. For example, one of these control loops can make sure that a desired number of your application is available all the time.
kube-controller-manager
The _____________ can be used to interact with the API of cloud providers, to create external resources like load balancers, storage or security groups.
cloud-controller-manager
The _________ _________ is responsible for running the containers on the worker node. For a long time, Docker was the most popular choice, but is now replaced in favor of other runtimes like containerd.
container runtime
__________ is a small agent that runs on every worker node in the cluster. It talks to the api-server and the container runtime to handle the final stage of starting containers.
kubelet
_________ is a network proxy that handles inside and outside communication of your cluster. Instead of managing traffic flow on its own, it tries to rely on the networking capabilities of the underlying operating system if possible.
kube-proxy
What three tools can be used to create a test cluster?
- Minikube
- kind
- MicroK8s
Which installers can be used to setup a production-grade cluster on your own hardware or virtual machines?
- kubeadm
- kops
- kubespray