Jump to content

Kubernetes: Difference between revisions

Line 173: Line 173:
* ClusterIP - This creates an IP address on the internal cluster which nodes and pods on the cluster can access. (Default)
* ClusterIP - This creates an IP address on the internal cluster which nodes and pods on the cluster can access. (Default)
* NodePort - This exposes the port on every node. It implicitly creates a ClusterIP and every node will route to that. This allows access from outside the cluster.
* NodePort - This exposes the port on every node. It implicitly creates a ClusterIP and every node will route to that. This allows access from outside the cluster.
* ExternalName - uses a CNAME record. Primarily for accessing other services from within the cluster.


On managed deployments (e.g. AWS EKS, GKE) you also have
On managed deployments (e.g. AWS EKS, GKE) you also have
* LoadBalancer - fires up the provider's load balancer
* LoadBalancer - fires up the provider's load balancer
* ExternalName


By default, ClusterIP is provided by <code>kube-proxy</code> and performs round-robin load-balancing to pods.
By default, ClusterIP is provided by <code>kube-proxy</code> and performs round-robin load-balancing to pods.