Kubernetes Flashcards

1
Q

What is Kubernetes?

A

Kubernetes is an open-source platform designed to automate deploying, scaling, and operating application containers.

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

What are the main features of Kubernetes?

A

Kubernetes offers features like automated rollouts and rollbacks, service discovery and load balancing, storage orchestration, batch execution, horizontal scaling, and self-healing.

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

Explain what a Kubernetes Pod is.

A

A Pod is the smallest deployable unit that can be created and managed in Kubernetes, typically encapsulating one or more containers.

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

What is a Node in Kubernetes?

A

A Node is a physical or virtual machine in the Kubernetes cluster where Pods are scheduled to run.

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

Describe the role of the Kubernetes Control Plane.

A

The Control Plane is responsible for making global decisions about the cluster, as well as detecting and responding to cluster events.

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

What are the components of a Kubernetes master node?

A

The master node contains the kube-apiserver, kube-scheduler, etcd, and kube-controller-manager.

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

What are kubelets?

A

Kubelets are agents that run on each node in the cluster, ensuring that containers are running in a Pod.

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

Explain the purpose of kubectl.

A

kubectl is a command-line tool for interacting with the Kubernetes API Server to create, update, delete, and get resources in a Kubernetes cluster.

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

What is etcd in Kubernetes?

A

Etcd is a distributed key-value store used by Kubernetes for all cluster data, providing a reliable way to store data across a cluster of machines.

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

Describe the role of the kube-scheduler.

A

The kube-scheduler assigns new Pods to nodes based on resource availability, constraints, affinity specifications, and other factors.

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

What is a Kubernetes Deployment?

A

A Deployment provides declarative updates to Pods and ReplicaSets, allowing for easy updating of applications.

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

Explain how rolling updates work in Kubernetes.

A

Rolling updates allow Deployments’ update to take place with zero downtime by incrementally updating Pods instances with new ones.

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

What is a ReplicaSet in Kubernetes?

A

A ReplicaSet ensures that a specified number of Pod replicas are running at any given time.

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

How do Kubernetes Services work?

A

Kubernetes Services define a logical set of Pods and a policy to access them, often with a fixed IP address and DNS name.

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

What are Labels and Selectors in Kubernetes?

A

Labels are key/value pairs attached to objects, such as Pods, used to identify attributes of objects. Selectors are used to select a group of objects based on their labels.

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