🌐 Kubernetes Service Types
Kubernetes Services expose your pods to other services or the outside world. Here are the main types:
1. ClusterIP (default)
Access: Internal only (within the cluster)
Use case: Microservice-to-microservice communication
type: ClusterIP
🧠 Tip: Not reachable from outside the cluster.
2. NodePort
Access: Exposes service on a static port on each Node’s IP
Use case: Basic external access (dev/test), or when using a load balancer manually
type: NodePort
🧠 Tip: Accessed via http://<NodeIP>:<NodePort>
3. LoadBalancer
Access: Exposes service using an external cloud load balancer (like AWS ELB)
Use case: Production-grade external access
type: LoadBalancer
🧠 Tip: AWS assigns a public ELB automatically
No comments:
Post a Comment