General overview Flashcards

1
Q

What is Kubernetes?

A

Kubernetes is an open-source container orchestration platform designed to automate the 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 are the key components of Kubernetes?

A

Key components include Pods, Nodes, Services, Deployments, ReplicaSets, and the Kubernetes API server.

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

What is a Pod in Kubernetes?

A

A Pod is the smallest deployable unit in Kubernetes, consisting of one or more containers that share resources such as storage and networking.

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 that runs Kubernetes components and hosts Pods.

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

What is a Deployment in Kubernetes?

A

A Deployment manages the lifecycle of Pods, enabling declarative updates and rollbacks to application configurations.

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

What is a Service in Kubernetes?

A

A Service provides a consistent way to access and load balance traffic to a set of Pods.

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

What is a ReplicaSet in Kubernetes?

A

A ReplicaSet ensures that a specified number of Pod replicas are running at any given time, helping to maintain availability and scalability.

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

What is the role of the Kubernetes API server?

A

The Kubernetes API server exposes the Kubernetes API, which allows users to interact with Kubernetes clusters and manage resources.

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

How does Kubernetes handle scaling?

A

Kubernetes can scale applications horizontally by adding or removing Pod replicas based on resource utilization or custom metrics.

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

What is a Kubernetes namespace?

A

A Kubernetes namespace provides a way to logically divide cluster resources, enabling multiple users or teams to share a cluster while maintaining isolation.

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

What is a Kubernetes Controller?

A

A Kubernetes Controller is a control loop that watches the state of cluster resources and makes changes to bring the actual state closer to the desired state.

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

What is the purpose of Kubernetes labels and selectors?

A

Kubernetes labels are key-value pairs attached to objects, while selectors are used to identify a set of objects based on their labels. Labels and selectors are used for grouping, filtering, and selecting objects for operations.

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

What is a Kubernetes ConfigMap?

A

A ConfigMap is a Kubernetes resource used to store configuration data in key-value pairs, which can be consumed by Pods as environment variables or mounted as files.

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

What is a Kubernetes Secret?

A

A Secret is a Kubernetes resource used to store sensitive information, such as passwords, API keys, and certificates, in a secure manner.

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

What is a Kubernetes PersistentVolume (PV)?

A

A PersistentVolume (PV) is a piece of storage in the cluster that has been provisioned by an administrator. It is a resource in the cluster just like a node is a cluster resource.

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

What is a Kubernetes PersistentVolumeClaim (PVC)?

A

A PersistentVolumeClaim (PVC) is a request for storage by a user. It is similar to a Pod. Pods consume node resources and PVCs consume PV resources.

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

What is a Kubernetes StatefulSet?

A

A StatefulSet is a Kubernetes controller used to manage stateful applications. It ensures stable, unique network identifiers and persistent storage for each Pod instance.

18
Q

What is the purpose of Kubernetes Ingress?

A

Kubernetes Ingress is an API object that manages external access to services within a Kubernetes cluster, typically HTTP/HTTPS traffic.

19
Q

What is a Kubernetes Helm chart?

A

A Helm chart is a package format for Kubernetes applications, which includes pre-configured Kubernetes resources such as Deployments, Services, and ConfigMaps.

20
Q

How does Kubernetes handle service discovery and load balancing?

A

Kubernetes uses DNS for service discovery, allowing services to be accessed by other services or external clients using a DNS name. Load balancing is handled by Kubernetes Services, which distribute traffic to the Pods behind them.

21
Q

What is the Kubernetes scheduler?

A

The Kubernetes scheduler is a component responsible for assigning Pods to Nodes based on resource requirements, quality of service, and other policies.

22
Q

What is a Kubernetes Operator?

A

A Kubernetes Operator is a method of packaging, deploying, and managing a Kubernetes application. It extends the Kubernetes API to create, configure, and manage complex applications and services automatically.

23
Q

What is the purpose of Kubernetes RBAC (Role-Based Access Control)?

A

Kubernetes RBAC is used to control access to the Kubernetes API and resources within a cluster by defining roles, role bindings, and service accounts, allowing fine-grained authorization.

24
Q

What is a Kubernetes PodSpec?

A

A PodSpec is a specification used to define the desired state of a Pod, including the container images, volumes, environment variables, and other settings.

25
Q

What is the difference between a DaemonSet and a Deployment in Kubernetes?

A

A DaemonSet ensures that all (or some) Nodes run a copy of a Pod, typically used for system daemons or monitoring agents. A Deployment manages the lifecycle of Pods and ensures a desired number of replicas are running.

26
Q

What is the purpose of Kubernetes readiness probes?

A

Kubernetes readiness probes are used to determine if a Pod is ready to serve traffic. If a readiness probe fails, the Pod is removed from the service’s pool of endpoints until it passes the probe again.

27
Q

What is the Kubernetes Control Plane?

A

The Kubernetes Control Plane consists of a set of components that control the state of the cluster, including the API server, scheduler, controller manager, and etcd.

28
Q

What is the role of etcd in Kubernetes?

A

etcd is a distributed key-value store used by Kubernetes to store cluster state, configuration, and metadata, providing a reliable and consistent data store for the entire cluster.

29
Q

What is a Kubernetes Taint?

A

A Kubernetes Taint is a key-value pair applied to a Node that repels (or taints) Pods, preventing them from running on the Node unless the Pod has a corresponding toleration.

30
Q

What is a Kubernetes Toleration?

A

A Kubernetes Toleration is a Pod specification that allows the Pod to tolerate (or ignore) the effect of a Node’s taint, enabling the Pod to schedule and run on tainted Nodes.

31
Q

What is Kubernetes CNI (Container Network Interface)?

A

Kubernetes CNI is a standard for connecting containers to a network, providing networking capabilities such as IP address management, inter-container communication, and network isolation within Kubernetes clusters.

32
Q

What is a Kubernetes HorizontalPodAutoscaler (HPA)?

A

A HorizontalPodAutoscaler automatically adjusts the number of Pod replicas in a Deployment, ReplicaSet, or StatefulSet based on CPU utilization or custom metrics, ensuring optimal performance and resource utilization.

33
Q

What is Kubernetes Pod Security Policy (PSP)?

A

Kubernetes Pod Security Policy is a set of rules that governs how Pods can run within a cluster, enforcing security constraints such as running as non-root users, using specific volumes, and restricting access to host resources.

34
Q

What is Kubernetes Deployment Strategy?

A

Kubernetes Deployment Strategy defines how updates to a Deployment are rolled out, including options such as rolling update, recreate, and blue-green deployment, allowing for controlled and automated application updates with minimal downtime.

35
Q

What is Kubernetes Init Container?

A

A Kubernetes Init Container is a separate container that runs before the main container in a Pod, used to perform initialization tasks such as setup, configuration, or data preparation before the application starts.

36
Q

What is Kubernetes Volume?

A

A Kubernetes Volume is a directory accessible to containers in a Pod, used for persisting data beyond the lifecycle of the container. Volumes can be backed by various storage types, including local storage, network storage, and cloud storage.

37
Q

What is Kubernetes Pod Security Context?

A

Kubernetes Pod Security Context is a Pod-level configuration that defines security settings such as running as a specific user or group, configuring Linux capabilities, and enforcing SELinux or AppArmor profiles to enhance container security.

38
Q

What is Kubernetes Affinity and Anti-Affinity?

A

Kubernetes Affinity and Anti-Affinity are mechanisms for influencing Pod scheduling decisions based on Node or Pod labels. Affinity ensures Pods are scheduled on specific Nodes, while Anti-Affinity avoids co-locating Pods based on specific criteria.

39
Q

What is Kubernetes Network Policy?

A

Kubernetes Network Policy is a resource that defines how Pods are allowed to communicate with each other and other network endpoints within a cluster, enabling fine-grained network segmentation and access control.

40
Q

What is Kubernetes Pod Disruption Budget (PDB)?

A

Kubernetes Pod Disruption Budget is a policy that defines the minimum number of Pods of a certain type that must remain available during voluntary disruptions such as maintenance or scaling events, ensuring application stability and availability.