Cluster Architecture Flashcards

1
Q

What are the components in a k8s node, describe them

A

Kubelet which ensures pods are running and healthy, container runtime software responsible for running the containers, kube-proxy which mantains network rules

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

Describe in detail tasks that the kubelet performs

A
  • Runs probes on containers do determine their healthiness, readiness
  • Gets information from the node and publishes it into the Kubernetes API
  • Create and updates .status of nodes and updates their related Leases.
  • Registers itself to the API for node registration
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you make a node unschedulable?

A

kubectl cordon $NodeName

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

What information can you find in a node status?

A

Addresses - hostnames, externalips, internal ips
Conditions - node statuses,
capacity and allocatable - Resources available and maximum number of pods
Info - general information like kernel version kubernetes version container runtime details, os…

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

How are comunnications made from a Node to the Master?

A

The API server listens for https connections, and Pods can communicate by leveraging a service account so that they can have the public root certificate injected on them on startup. Hitting the kubernetes service in the default namespace redirects traffic to the API through kube-proxy. These communications are safe to use in untrusted/public networks

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

How are communications made from Master to Nodes?

A

Master to Node communication is done by API to kubelet communications, which is not https by default. Or from API server to the nodes pods and services directly trough http which is not safe to use on public networks. To make this communications safe see Konnectivity service.

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

What is a controller in kubernetes?

A

A controller is a non-terminating loop that regulates the state of the cluster (control loop) and makes or requests changes where needed. A controller tracks at least one Kubernetes resource type.

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

What types control do controllers have?

A

A controller can either request to make changes through the API, or it can have direct control

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

Where do built-in controllers run?

A

Built-in controllers run inside the kubelet-controller-manager

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