Kubernetes Flashcards
(48 cards)
What is a container?
A lightweight, standalone executable package that includes everything needed to run a piece of software, including code, runtime, system tools, libraries, and settings.
What is Docker?
A platform for developing, shipping, and running applications in containers.
What is a Docker image?
A snapshot of a container’s file system and application code used to create containers.
What is a Dockerfile?
A script containing instructions for building a Docker image.
What is the difference between a container and an image?
An image is a static specification; a container is a running instance of that image.
What is container orchestration?
The automated management of container lifecycle, networking, scaling, and availability.
What is Kubernetes?
An open-source platform for automating container deployment, scaling, and management.
What is a Kubernetes cluster?
A set of nodes that run containerized applications managed by Kubernetes.
What are nodes in Kubernetes?
Worker machines in a Kubernetes cluster that run containers.
What is the master node in Kubernetes?
Also called the control panel node:
Controls and manages the Kubernetes cluster, including scheduling and API serving.
What is a Pod in Kubernetes?
The smallest deployable unit in Kubernetes that contains one or more containers.
What is a Deployment in Kubernetes?
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.
What is a ReplicaSet?
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.
What is a Service in Kubernetes?
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.
What is a ConfigMap?
An API object used to store non-confidential configuration data in key-value pairs.
Like env vars, config files, command-line args
What is a Secret in Kubernetes?
An API object that stores sensitive data such as passwords or tokens.
What is a StatefulSet?
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
What is a DaemonSet?
Ensures that a copy of a Pod runs on all or some nodes.
What is a Job in Kubernetes?
Creates one or more Pods and ensures that a specified number successfully terminate.
What is a CronJob?
Manages time-based jobs, like a cron scheduler.
What is a namespace in Kubernetes?
A virtual cluster within a Kubernetes cluster to organize resources.
What is a Helm chart?
A package manager for Kubernetes that defines, installs, and manages applications.
What is kubectl?
The command-line tool to interact with a Kubernetes cluster.
How do you scale a deployment in Kubernetes?
Use kubectl scale deployment <name> --replicas=<n>
.