Kubernetes Flashcards

(37 cards)

1
Q

What is Kubernetes?

A

An open-source system for automating deployment, scaling, and management of containerized applications.

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

What is a Pod?

A

The smallest deployable unit in Kubernetes, which can contain one or more containers, storage resources, a unique network
IP, and options that govern how the container(s) should run.

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

What is a Node?

A

A physical or virtual machine in a Kubernetes cluster that runs pods.

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

What is the Master Node?

A

The control plane component that manages the cluster and its states.

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

What does kubectl do?

A

A command-line interface tool to interact with the Kubernetes API server.

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

What is etcd?

A

A key-value store used to store Kubernetes cluster configuration and state.

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

What is the Scheduler?

A

Assigns pods to available nodes based on resource availability.

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

What is the Controller Manager?

A

Manages various controllers that handle routine tasks.

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

What is the Kubelet?

A

agent handles the control plane’s instructions to run containers, reports back to API.

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

What is a Deployment?

A

a Deployment is a higher-level object that manages and automates the creation, update, and scaling of a group of identical Pods (your running containers).

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

What is a Service in Kubernetes?

A

An abstraction that defines a logical set of pods and a policy to access them.

allow us to create a unique, persistent IP address and domain
name for a deployment.

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

What is a Namespace?

A

A way to divide Kubernetes cluster resources into distinct virtual clusters, providing isolation.

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

What is a ConfigMap?

A

A way to inject configuration data into pods.

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

What is a Secret?

A

Similar to ConfigMap but used for storing sensitive data like passwords or keys.

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

What is a Volume?

A

A storage mechanism used to persist data across pod restarts.

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

What is an Ingress?

A

Manages external access to services, typically HTTP.

17
Q

What is a NetworkPolicy?

A

Defines rules to control traffic between pods.

18
Q

What is a StatefulSet?

A

Manages deployment and scaling of stateful applications.

19
Q

What is the Horizontal Pod Autoscaler (HPA)?

A

Automatically adjusts the number of pods in a deployment based on metrics.

20
Q

What are Taints and Tolerations?

A

Mechanisms to prevent or allow pods from being scheduled on specific nodes.

21
Q

What is Affinity/Anti-Affinity?

A

Rules to influence pod placement in a cluster based on pod/node attributes.

22
Q

What is Helm?

A

A package manager that helps manage Kubernetes applications using charts.

23
Q

What does ‘expose’ mean in kubernetes?

A

make a pod or deployment reachable via a Kubernetes Service

or Create a Service that allows other components (internal or external)

24
Q

What is an avaliability zone?

A

geographic locations hosting data centres, physically separated with different power grids to reduce single points of failure, and typically interconnected with high-bandwidth networking

25
What is high avaliability ?
systems aim to maintain an agreed level of operational performance (like uptime) through unexpected events (hardware failures, power outages, network issues)
26
How is High Availability achieved
Replication + running replicas across AVs.
27
What does the API server do?
28
Define RESTful services
- uses HTTP methods for CRUD operations - rest is stateless - resources are identified via URIs (web addresses), accessed, and manipulated using standard HTTP methods.
29
What information does the cluster store hold?
Kubernetes objects like pods, Services, Deployments and their current state.
30
What do controllers do?
perform the task of watching the state of the cluster and making changes to the cluster to bring the current state closer to the desired state, as specified by the API Server.
31
Examples of controllers?
* The Deployment Controller * The StatefulSet Controller * The ReplicaSet Controller
32
What tasks does the kubelet do?
* It watches the API server for new tasks. * It delegates these tasks to the container runtime(s). * It reports the status of tasks back to the API server.
33
What is SSH?
a network protocol that lets you securely access and control another computer over a network (typically over the internet or your local LAN).
34
what is minikubes container runttime?
docker
35
why are pause containers used?
Kubernetes uses pause containers to allow for worker containers crashing or restarting without losing any of the networking configuration.
36
What is a service mesh?
a dedicated infrastructure layer added to Kubernetes clusters that provides capabilities like observability, traffic management, and security without modifying application code
37
What is the difference between ReplicaSet and Deployment?
idk