Kubernetes Flashcards

(48 cards)

1
Q

What is a container?

A

A lightweight, standalone executable package that includes everything needed to run a piece of software, including code, runtime, system tools, libraries, and settings.

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

What is Docker?

A

A platform for developing, shipping, and running applications in containers.

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

What is a Docker image?

A

A snapshot of a container’s file system and application code used to create containers.

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

What is a Dockerfile?

A

A script containing instructions for building a Docker image.

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

What is the difference between a container and an image?

A

An image is a static specification; a container is a running instance of that image.

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

What is container orchestration?

A

The automated management of container lifecycle, networking, scaling, and availability.

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

What is Kubernetes?

A

An open-source platform for automating container deployment, scaling, and management.

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

What is a Kubernetes cluster?

A

A set of nodes that run containerized applications managed by Kubernetes.

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

What are nodes in Kubernetes?

A

Worker machines in a Kubernetes cluster that run containers.

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

What is the master node in Kubernetes?

A

Also called the control panel node:

Controls and manages the Kubernetes cluster, including scheduling and API serving.

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

What is a Pod in Kubernetes?

A

The smallest deployable unit in Kubernetes that contains one or more containers.

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

What is a Deployment in Kubernetes?

A

A resource that provides declarative updates for Pods and ReplicaSets.

A Deployment makes sure a specific version of your app is running, healthy, and scalable—and will replace it automatically if it crashes or you push an update.

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

What is a ReplicaSet?

A

Ensures that a specified number of pod replicas are running at all times.

A ReplicaSet keeps your app running with the exact number of copies (Pods) you want. It’s the engine behind your Deployments.

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

What is a Service in Kubernetes?

A

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

A Service is how Kubernetes gives your Pods a stable address, load balances traffic, and lets other components find and connect to them.

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

What is a ConfigMap?

A

An API object used to store non-confidential configuration data in key-value pairs.

Like env vars, config files, command-line args

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

What is a Secret in Kubernetes?

A

An API object that stores sensitive data such as passwords or tokens.

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

What is a StatefulSet?

A

A controller used to manage stateful applications and maintain sticky identity for pods.

A StatefulSet in Kubernetes is a controller used to manage stateful applications—apps that require:
* Stable, unique network identities
* Stable, persistent storage
* Ordered deployment and scaling

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

What is a DaemonSet?

A

Ensures that a copy of a Pod runs on all or some nodes.

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

What is a Job in Kubernetes?

A

Creates one or more Pods and ensures that a specified number successfully terminate.

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

What is a CronJob?

A

Manages time-based jobs, like a cron scheduler.

21
Q

What is a namespace in Kubernetes?

A

A virtual cluster within a Kubernetes cluster to organize resources.

22
Q

What is a Helm chart?

A

A package manager for Kubernetes that defines, installs, and manages applications.

23
Q

What is kubectl?

A

The command-line tool to interact with a Kubernetes cluster.

24
Q

How do you scale a deployment in Kubernetes?

A

Use kubectl scale deployment <name> --replicas=<n>.

25
What is the role of the kubelet?
An agent that runs on each node and ensures containers are running.
26
What is the kube-proxy?
Maintains network rules on nodes and enables service abstraction.
27
What is etcd?
A consistent and highly available key-value store used as Kubernetes’ backing store for all cluster data.
28
What is a PersistentVolume (PV)?
A piece of storage in the cluster provisioned by an administrator.
29
What is a PersistentVolumeClaim (PVC)?
A request for storage by a user.
30
What is a StorageClass?
Defines different classes of storage which may be offered in a cluster.
31
What is a ClusterIP service?
Exposes the service on an internal IP in the cluster.
32
What is a NodePort service?
Exposes the service on each node’s IP at a static port.
33
What is a LoadBalancer service?
Exposes the service externally using a cloud provider’s load balancer.
34
What is container image scanning?
Analyzing container images for known vulnerabilities.
35
What is a sidecar container?
A helper container that runs alongside the main container in a Pod.
36
What is container runtime?
The software responsible for running containers, e.g., containerd or CRI-O.
37
What is init container?
A container that runs before app containers in a Pod and completes before they start.
38
What is Prometheus?
An open-source monitoring system with a dimensional data model and alerting.
39
What is Grafana?
An open-source analytics and monitoring dashboard for visualizing Prometheus metrics.
40
What is Fluentd?
A log collector and shipper often used in Kubernetes for log aggregation.
41
What is RBAC in Kubernetes?
Role-Based Access Control, used to define permissions within the cluster.
42
What is a ServiceAccount?
Provides an identity for processes in a pod to interact with the Kubernetes API.
43
What are Network Policies?
Define rules for how groups of pods are allowed to communicate with each other and other network endpoints.
44
What is Minikube?
A tool to run a single-node Kubernetes cluster locally for testing.
45
What is a taint in Kubernetes?
Prevents pods from being scheduled onto nodes unless they tolerate the taint.
46
What is an affinity rule?
Defines rules for pod placement based on node/pod characteristics.
47
What is horizontal pod autoscaler?
Automatically scales the number of pods based on CPU/memory usage or custom metrics.
48
What is cluster autoscaler?
Automatically adjusts the number of nodes in your cluster based on pending pods.