k8wiz
Kubernetes
Medium
Networking

What is the difference between a ClusterIP and a NodePort service?

Select your answer:

Show answer and explanation

Answer: ClusterIP exposes the service on a cluster internal IP, while NodePort exposes it on each node's IP at a static port

Explanation

A ClusterIP service is only accessible within the cluster and exposes the service on an internal cluster IP. A NodePort service exposes the service on each node's IP at a static port, making it accessible from outside the cluster using <NodeIP>:<NodePort>.

Read more about Kubernetes