Pods and Services

Level : Advanced
Mentor: Shailendra Chauhan
Duration : 00:01:00

What is Pod?

Kubernetes uses pods as logical containers that store numerous application containers & shared volumes, ensuring co-location and stability. Kubernetes manages using pods rather than individual containers, ensuring that containers within the same pod share networking, storage, and lifecycle on the same machine, resulting in efficient operation.

Pod States

  • Pending
  • Running
  • Successful (Succeeded)
  • Failed
  • Unknown

Need for pods in Kubernetes

We need pods in clusters because they allow for data sharing and communication among their members. So we may access pod applications using the same IP and port.

Different types of multiple-container pods

Three different types of multi-container pods.

  1. Sidecar
  2. Adapter
  3. Ambassador

Kubernetes service

Kubernetes Services makes network access to a collection of Pods easier by categorizing them based on labels. Requests to a Service are sent to all Pods in the cluster that matches the Service's selector, ensuring smooth communication throughout the Kubernetes ecosystem.

Working of Kubernetes Service

Services are programmes that maintain the list of pod IP addresses for a deployment. Services choose pods depending on their labels. When a network request is sent to the service, it selects all Pods that match the service's selector, chooses one, and returns the network request.

Different types of services in Kubernetes

There are four types of service in Kubernetes:

  1. ClusterIP
  2. NodePort
  3. LoadBalancer
  4. ExternalName
Self-paced Membership
  • 22+ Video Courses
  • 800+ Hands-On Labs
  • 400+ Quick Notes
  • 55+ Skill Tests
  • 45+ Interview Q&A Courses
  • 10+ Real-world Projects
  • Career Coaching Sessions
  • Email Support
Upto 60% OFF
Know More
Still have some questions? Let's discuss.
CONTACT US
Accept cookies & close this