Kubernetes: Difference between revisions

Tags: Mobile edit Mobile web edit
Line 52: Line 52:


</pre>
</pre>
==Services==
[https://kubernetes.io/docs/concepts/services-networking/service Documentation]
Services handle networking. 
For self-hosted/bare metal deployments, there are two types of services.
* 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.
On managed deployments (e.g. AWS EKS, GKE) you also have
* 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.
==Ingress==
Ingress is equivalent to having a load-balancer / reverse-proxy pod with a NodePort service.


==Variants==
==Variants==