Business Scenario
You have already deployed your application to a Kubernetes cluster using a deployment and created a service for it. To expose this service to the outside world, you must create an API rule.
Exercise Options
You can perform this exercise in two ways:
- Platform Simulation – follow the step-by-step instructions within the simulation.
- Live Environment - by using the instructions provided below, you can perform the steps in the SAP BTP Free Tier account.
We strongly recommend first performing the steps in the Live Environment.
Platform Simulation
Choose the Start Exercise button below to open a simulation of the platform. Then follow the step-by-step instructions to expose a service in Kyma with API Rules.
ExerciseStart Exercise
Live Environment
In this exercise, you will perform the following tasks:
- Expose the service with an API Rule
- Test the exposed service
Prerequisites
- You have successfully created a SAP BTP, Kyma runtime instance in the SAP BTP subaccount.
- You have configured kubectl to work with your SAP BTP, Kyma runtime instance.
- You have successfully created the
hello-kyma
deployment in the exercise Create and test a serverless function. - You have successfully created the
hello-kyma-svc
service in the exercise Create a service for a deployment.