DEV Community

Er. Bhupendra
Er. Bhupendra

Posted on

Cloud Controller Manager (CCM)(kubernate's part 5)

Kubernetes में Cloud Controller Manager (CCM) क्या है ☁️

Image

Image

Image

1️⃣ Cloud Controller Manager क्या है

Cloud Controller Manager Kubernetes का component है जो Kubernetes cluster को cloud provider (AWS, Azure, GCP) से connect करता है।

One line (Interview):
👉 Cloud Controller Manager Kubernetes और cloud provider के बीच integration manage करता है।


2️⃣ Cloud Controller Manager क्यों होता है

Kubernetes को कई cloud resources use करने होते हैं:

  • Load Balancer
  • Storage
  • Network routes
  • Node information

अगर CCM न हो तो Kubernetes cloud APIs से communicate नहीं कर पाएगा

👉 इसलिए CCM Kubernetes और Cloud Infrastructure के बीच bridge है।


3️⃣ Cloud Controller Manager क्या-क्या काम करता है

CCM के अंदर कुछ controllers होते हैं।

1️⃣ Node Controller

Cloud provider से node information check करता है।

Example

EC2 instance status
VM status
Enter fullscreen mode Exit fullscreen mode

अगर node delete हो जाए तो Kubernetes cluster से remove कर देता है।


2️⃣ Route Controller

Cloud network routes manage करता है।

Example

Pod network routing
Enter fullscreen mode Exit fullscreen mode

3️⃣ Service Controller

अगर Kubernetes service type हो:

LoadBalancer
Enter fullscreen mode Exit fullscreen mode

तो CCM cloud में actual load balancer create करता है

Example

AWS ELB
Azure Load Balancer
GCP Load Balancer
Enter fullscreen mode Exit fullscreen mode

4️⃣ Volume Controller

Cloud storage manage करता है।

Example

AWS EBS
Azure Disk
GCP Persistent Disk
Enter fullscreen mode Exit fullscreen mode

4️⃣ Cloud Controller Manager किस-किस से connection रखता है

1️⃣ kube-apiserver (Direct)

CCM हमेशा API Server से communicate करता है।

cloud-controller-manager → kube-apiserver
Enter fullscreen mode Exit fullscreen mode

2️⃣ Cloud Provider APIs (Direct)

CCM cloud provider APIs से connect करता है।

Example

AWS API
Azure API
GCP API
Enter fullscreen mode Exit fullscreen mode

3️⃣ etcd (Indirect)

CCM etcd से direct connect नहीं करता।

Flow:

CCM
 ↓
kube-apiserver
 ↓
etcd
Enter fullscreen mode Exit fullscreen mode

5️⃣ Real Example

अगर Kubernetes service create करें:

type: LoadBalancer
Enter fullscreen mode Exit fullscreen mode

Flow:

User
 ↓
kubectl
 ↓
kube-apiserver
 ↓
Cloud Controller Manager
 ↓
AWS / Azure / GCP
 ↓
Load Balancer create
Enter fullscreen mode Exit fullscreen mode

6️⃣ One Line Memory Trick 🧠

👉 Cloud Controller Manager = Kubernetes और Cloud provider के बीच bridge।

या

👉 CCM manages cloud resources like load balancer, routes, and storage.


7️⃣ Kubernetes Control Plane Complete Trick 🔥

API Server → Gateway
etcd → Database
Scheduler → Pod placement
Controller Manager → Maintain state
Cloud Controller Manager → Cloud integration
Enter fullscreen mode Exit fullscreen mode

Node side

kubelet → Pod run
kube-proxy → Networking
Enter fullscreen mode Exit fullscreen mode

✅ अगर चाहो तो मैं Kubernetes के 9 components (control plane + node) को एक super easy diagram और trick से समझा दूँगा जिससे interview में पूरा Kubernetes architecture 1 minute में explain कर पाओगे।

Top comments (0)