K8s YAML file Kind features
๐ง Short Answer ๐ kind batata hai ki tum Kubernetes me kis type ka object bana rahe ho kind: Pod kind: Deployment kind: Service kind: ConfigMap ๐ Har kind = alag resource / object type ๐ฅ Simple ...

Source: DEV Community
๐ง Short Answer ๐ kind batata hai ki tum Kubernetes me kis type ka object bana rahe ho kind: Pod kind: Deployment kind: Service kind: ConfigMap ๐ Har kind = alag resource / object type ๐ฅ Simple analogy Kubernetes = City ๐๏ธ kind = building type ๐ข Pod = ghar ๐ Service = road ๐ Deployment = manager ๐งโ๐ผ ConfigMap = settings file โ๏ธ ๐ Tum YAML me decide karte ho โ kaunsa โbuildingโ banana hai ๐ Most Important kind (interview + real use) 1๏ธโฃ Pod (basic unit) kind: Pod ๐ Sabse chhota unit ๐ Container yahi run hota hai โ Direct use kam hota hai (production me) 2๏ธโฃ Deployment (most used ๐ฅ) kind: Deployment ๐ Ye Pods ko manage karta hai: scaling auto-restart rolling update โ Real-world me mostly Deployment hi use hota hai 3๏ธโฃ ReplicaSet kind: ReplicaSet ๐ Ye ensure karta hai: "Itne number of pods hamesha chalne chahiye" โ ๏ธ Direct use rare hai ๐ Deployment internally ReplicaSet use karta hai 4๏ธโฃ Service kind: Service ๐ Pods ko expose karta hai stable IP load balancing 5๏ธโฃ Config