Flashcard Deck · 25 cards · Public

Kubernetes - Core Concepts & Deployment Strategies

Master Kubernetes essentials, from core components like Pods and Services to advanced deployment strategies and declarative YAML configurations, empowering you to orchestrate containerized applications at scale.

Cards in this deck

(25 cards)

Preview terms and definitions before starting your study session.

#1
Term
What is Kubernetes?
Definition
Kubernetes (K8s) is an open-source container orchestration platform designed to automate the deployment, scaling, and management of containerized applications. It groups containers into logical units for easy management and discovery.
#2
Term
Explain the difference between declarative and imperative configuration in Kubernetes.
Definition
• Declarative: You describe the desired state of your system (e.g., "I want 3 Nginx pods running"). Kubernetes continuously works to achieve and maintain that state. This is primarily done using YAML manifest files.
• Imperative: You execute commands to perform actions (e.g., kubectl run nginx --image=nginx). This directly manipulates the current state.
#3
Term
What is the primary purpose of YAML in Kubernetes?
Definition
YAML (YAML Ain't Markup Language) is the standard human-readable data serialization format used to define Kubernetes objects. It allows users to declaratively specify the desired state of their applications and infrastructure (e.g., Pods, Deployments, Services).
#4
Term
Name the key components of the Kubernetes Control Plane.
Definition
The Kubernetes Control Plane manages the cluster and its worker nodes. Its key components are:
• kube-apiserver
• etcd
• kube-scheduler
• kube-controller-manager
#5
Term
What is the role of the kube-apiserver?
Definition
The kube-apiserver is the front-end of the Kubernetes control plane. It exposes the Kubernetes API, allowing users and other components to interact with the cluster. It validates and configures data for API objects like Pods, Services, etc.
#6
Term
What is etcd and why is it crucial for Kubernetes?
Definition
etcd is a consistent and highly available key-value store used by Kubernetes to store all cluster data, including configuration data, state information, and metadata about objects (Pods, Deployments, Services, etc.). It acts as the single source of truth for the cluster.
#7
Term
Explain the function of the kube-scheduler.
Definition
The kube-scheduler watches for newly created Pods with no assigned node and selects an optimal node for them to run on. It considers factors like resource requirements, hardware/software/policy constraints, affinity/anti-affinity specifications, and data locality.
#8
Term
What does the kube-controller-manager do?
Definition
The kube-controller-manager runs various controller processes that regulate the state of the cluster. Each controller (e.g., Node Controller, Replication Controller, Endpoints Controller, Service Account Controller) watches a specific resource and works to move the current state closer to the desired state.
Showing 8 of 25 cards in this deck.
Study All Now