What are ClusterIP and NodePort? (in K8S)
First, let’s describe a service, A service is a way to expose an application running on a pod or a set of pods.
so to connect to that application we need a service.
What types of services can you use?
The “types” of services can be:
- ClusterIP
- NodePort
- LoadBalancer
- ExternalName
let’s focus on ClusterIP and NodePort for this blog post.
What is ClusterIP?
ClusterIP exposes the service for cluster internal communication, only within the Kubernetes cluster.
What is NodePort?
NodePort exposes the service for the cluster external communication.
to access the application you’ll need the IP of the node and the port.
<NodeIP>:<NodePort>
(Visited 359 times, 1 visits today)