CS/Kubernetes

·CS/Kubernetes
☣️ What is a Taint?A taint is applied to a node to mark it as unsuitable for certain pods, unless those pods explicitly tolerate the taint.It works like this:🛑 "This node doesn't want your pod... unless you're okay with my taint."  🔧 Taint Syntaxkubectl taint nodes key=value:effect 🧪 Examplekubectl taint nodes node1 key=env:NoSchedule🛡️ What is a Toleration?A toleration is added to a pod sp..
·CS/Kubernetes
🧠 What is Scheduling in Kubernetes?Kubernetes scheduling is how the system decides which node should run a given Pod. The Kube-scheduler is the component that assigns Pods to Nodes.When you create a Pod, it starts in a "Pending" state. The scheduler looks at:The Pod’s requirements (like CPU, memory, labels)The cluster's current stateThe available nodesThen it picks the best node to run the Pod...
·CS/Kubernetes
🌐 What is a Service in Kubernetes?A Service is an abstraction that defines a stable way to access a set of Pods (usually grouped by a label selector). It exposes an application running in your cluster behind a single outward-facing endpoint, even when the workload is split across multiple backends. Since Pods are ephemeral (they come and go), a Service ensures that your app always has a reliabl..
·CS/Kubernetes
🔁 ReplicaSetA ReplicaSet (RS) ensures that a specified number of replica Pods are running at any given time. If a Pod goes down, the RS automatically creates a new one.🔧 Example YAML:apiVersion: apps/v1kind: ReplicaSetmetadata: name: my-replicasetspec: replicas: 3 selector: matchLabels: app: myapp template: metadata: labels: app: myapp spec: containers: ..
·CS/Kubernetes
YAML (YAML Ain’t Markup Language) is a human-readable data serialization format, often used for configuration files, especially in tools like Kubernetes, Docker Compose, and Ansible.🧠 YAML ConceptsKey-Value PairsBasic structure is key: value.Indentation MattersYAML uses indentation (spaces only) to define structure. No tabs allowed.ListsRepresented with dashes -.Nested StructuresKeys can contai..
·CS/Kubernetes
Kubernetes is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications. Here’s a breakdown of core concepts and main components:🔹 Core ConceptsClusterA set of machines (nodes) running Kubernetes. It consists of a control plane and worker nodes.NodeA physical or virtual machine in the cluster that runs pods. There are:Ma..