When To Use Which Kubernetes Native Service? ClusterIP, NodePort, LoadBalancer or Ingress?

In Kubernetes, a Service is an abstraction level that Kubernetes uses to make a deployed application accessible from the internal and external of the cluster. Kubernetes supports three different types of services:

  • Cluster IP

It is extremely important to understand the difference between them to correctly design your applications. It’s also important to understand the difference between these concepts and the Ingress…

When To Use ClusterIP?

  1. Debugging services

When To Use NodePort?

  1. Services that can allow for external connectivity

When To Use LoadBalancer?

  1. All traffic on the load-balancer port that is specified will be forwarded to the service. There is no filtering, no routing etc.

When To Use Ingress?

  1. Ingress is the most useful if you want to expose multiple services under the same IP address using path-based or subdomain routing.

--

--

I'm a System Integration Engineer focusing on Cloud Native Solution Deployments. I enjoy generating new ideas and devising network performance and management.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Hema Prajapati

I'm a System Integration Engineer focusing on Cloud Native Solution Deployments. I enjoy generating new ideas and devising network performance and management.