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>.
More medium Kubernetes questions
- What is a Kubernetes Ingress?
- A pod is in 'CrashLoopBackOff' state. What does this indicate?
- Which component is responsible for executing containers on nodes?
- What is the purpose of a Kubernetes ReplicaSet?
- Which network plugin is commonly used in Kubernetes to implement the Container Network Interface (CNI)?
- What is the purpose of a PersistentVolumeClaim (PVC)?