Different Services in Kubernetes

Nishit Ranjan
1 min readSep 24, 2019

--

Services are the Kubernetes Objects that provide networking capabilities to Deployments and other controllers like Stateful sets.

Services can also be created using kubectl expose command.

Every controller, say every deployment shall have its own service. Once it has a service object, the deployments can be accessed both from within the cluster or from outside the cluster.

The main kinds of Kubernetes Services are:
a) ClusterIP : a virtual IP that’s accessible only from within the cluster. It exposes a set of pods to other objects in the cluster
b) NodePort: Exposes a set of pods to the outside world.(It is only good for development purposes). The port is same on each node.
c) Load Balancer: Created by the cloud provider. Will route external network traffic into the cluster. Gives access to only one set of pods.
d) Ingress: Contains a defined set of routing rules that exposes a set of services to the outside world.

--

--

Nishit Ranjan
Nishit Ranjan

Written by Nishit Ranjan

0 Followers

I am a software engineer. I specialize in JavaScript, React.js, NodeJS, Docker and Kubernetes.

No responses yet