એક Service labels દ્વારા પસંદ કરાયેલા Pods ના સમૂહ ને એક સ્થિર network ઓળખ (એક virtual IP અને એક DNS name) આપે છે. કારણ કે Pods ephemeral છે અને IPs બદલે છે, Service એ ટકાઉ સરનામું છે જે clients વાપરે છે, અને તે તેની પાછળના healthy Pods પર load-balance કરે છે.
Services શા માટે અસ્તિત્વમાં છે
Pods come and go (new IP each time). Clients need a STABLE endpoint.
A Service:
→ selects Pods by label (selector: app=web)
→ gets a fixed virtual IP + DNS name (web.default.svc.cluster.local)
→ load-balances requests across the matching, READY Pods
