Service management
Services are a crucial part of GKE. GKE uses services to group Pods into a single resource that is going to be accessed from outside of the GKE cluster. After the deployment of the application, we can choose different ways to access applications running in GKE.
Types of services
We have a handful selection of services to choose from, as follows:
ClusterIP
—This is a default service where clients’ requests are sent to an internal IP address.NodePort
—Clients send requests to the IP address of a node with a specific, configurable port value.LoadBalancer
—Clients access the application by using the IP address of the load balancer.ExternalName
—Clients access the application by using the DNS address.Headless
—A headless service that can be used to group Pods without an IP address.
Both the Kubernetes and GKE documentation describe in detail services with all their options, and we recommend...