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

Kubernetes, Medium (Advanced), Networking. https://k8wiz.com/uquiz/what-is-the-difference-between-a-clusterip-and-a-nodeport-service

- A. ClusterIP exposes the service on each node's IP, while NodePort exposes it on a cluster internal IP
- B. ClusterIP exposes the service on a cluster internal IP, while NodePort exposes it on each node's IP at a static port
- C. ClusterIP is only accessible within the cluster, while NodePort is accessible from outside the cluster
- D. ClusterIP is for stateless services, while NodePort is for stateful services

**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>.
