

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
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
As you know, the web service in the SynergyChat system serves the front-end assets (HTML, CSS, and JavaScript) to the user's browser. The api service is responsible for handling requests from the front-end and returning data from the database.
Let's add a "NodePort" type service to expose the api service to the outside world.
Create a copy of your web-service.yaml file and name it api-service.yaml. Change the following:
api-serviceapp: synergychat-api keytype: NodePort to the spec sectionnodePort: 30080 to the first object in the ports listHere are the docs for the NodePort service type in case you get lost.
Once you've made the changes, apply the service. Then check to make sure the service is running:
kubectl get svc
Next, run:
kubectl proxy
Run and submit the CLI tests.