

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: Services
incomplete
2: Service Types
incomplete
3: API Service
incomplete
4: Crawler Service
incomplete
5: Change API Service
incomplete
This lesson's interactive features are locked, please to keep using them
Remember how I said that NodePort and LoadBalancer services are used to expose services to the outside world? That's true, but in most cloud-based Kubernetes environments, you'll actually use a Gateway object to expose your services. The Gateway object not only exposes your service to the outside world, but also allows you to do things like:
Because we'll be setting up a Gateway in the next chapter anyway, there's no reason to expose the API service with a NodePort service. Let's change it back to a ClusterIP service.
Switch the api-service back to a ClusterIP service. Then run:
kubectl proxy
Run and submit the CLI tests.