Welcome back! In this article, we’ll recap how to expose applications on Google Kubernetes Engine (GKE).Documentation Index
Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
Use this file to discover all available pages before exploring further.
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:| Service Type | Description | Use Case |
|---|---|---|
| LoadBalancer | Provisions a cloud load balancer with an external IP | Production or public-facing services |
| NodePort | Exposes the Service on a static port (≥30000) on each node | Development and basic internal access |
| ClusterIP | Default; accessible only within the cluster | Internal services that should not be exposed |
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.