Skip to main content

Command Palette

Search for a command to run...

Kubernetes Introduction

Published
β€’2 min readβ€’View as Markdown
S

Who is a highly motivated and results-oriented Software Engineer with a passion for crafting robust and user-friendly web applications. Possesses strong expertise in both backend development and full-stack development, leveraging a diverse skillset to design, develop, and deploy scalable software solutions.

πŸš€ Kubernetes Day 1 – Basics (Super Easy Explanation)

πŸ”₯ 1. Kubernetes kya hota hai? (Simple words)

Kubernetes = Container ka manager
Jaise Docker container banata hai…
Waise Kubernetes containers ko manage, scale, run, restart, balance karta hai.

Kubernetes ko short me K8s bolte hain.

Ek simple example:

  • Tumhare paas 10 container hain.

  • Ek server fail ho gaya.
    πŸ‘‰ Kubernetes automatically container ko dusre server par chala deta hai.

Ye sab automatic hota hai.


πŸ”₯ 2. Kubernetes ka kaam kya hota hai?

K8s ye 5 kaam karta hai:

βœ” 1. Auto-healing

Container crash β†’ Kubernetes automatically naya container start karega.

βœ” 2. Load balancing

Traffic zyada β†’ request ko equal share karega.

βœ” 3. Scaling

Traffic zyada β†’ containers badha dega
Traffic kam β†’ containers kam kar dega

βœ” 4. Deployment

Code update β†’ zero downtime ke saath update.

βœ” 5. Multi-node management

Ek cluster me 3 ya 50 server ho β†’ sab manage ho jate hain.


πŸ”₯ 3. Kubernetes ka structure (Easy language)

Kubernetes me 2 main parts:

🟧 1. Master Node (Control Plane)

Yahaan dimag rehta hai β€” decision maker.

Kaam:

  • scheduling

  • scaling

  • health check

  • deployments


🟩 2. Worker Nodes

Ye kaam karne wale log hain.
In par containers chalte hain.

Worker node me ye hota hai:

  • Kubelet

  • Container runtime (Docker / containerd)

  • Pods (containers)


πŸ”₯ 4. Pod kya hota hai?

Pod = Kubernetes ka smallest unit
Pod ke andar 1 ya 1+ container ho sakte hain.

Example:
A container + sidecar container β†’ ek single pod.


πŸ”₯ 5. Aaj ka summary

TopicMeaning
KubernetesContainer Manager
ClusterMaster + Worker nodes
PodSmallest running unit
NodeServer jahan pods chalte hain
SchedulerDecide karta hai pod kahan chalega

πŸ“˜ Aaj ka homework (2 min)

Bas ye 3 sawal apne words me bolo:

  1. Kubernetes kis cheez ko manage karta hai?

  2. Pod kya hota hai?

  3. Node ka kya role hota hai?


DevOps (Developer Operations)

Part 1 of 1

In this series we will see DevOps from the basics to advanced level.