Objective
Expose the application deployed on our GKE cluster to external or internal clients.Configuring the Kubernetes Service
To make your application accessible, create a Service of typeLoadBalancer. On GKE, this automatically provisions a cloud load balancer and assigns an external IP or URL.
EXTERNAL-IP field is populated, then navigate to http://<EXTERNAL-IP>.
Run
kubectl describe svc my-app-service for detailed load balancer events and annotations.Choosing the Right Service Type
Depending on your environment and security requirements, you can select one of the following Service types:ClusterIP services are not reachable from outside the cluster. Verify your network policies before switching types.
Summary
In Sprint 0.6, we configured a Kubernetes Service on GKE to expose our application. Choose the Service type—LoadBalancer, NodePort, or ClusterIP—that best fits your deployment needs.