Setting Up a Service Instance and a Service Binding on the SAP BTP, Kyma Runtime

Objective

After completing this lesson, you will be able to set up a service instance and a service binding on the SAP BTP, Kyma runtime

Set Up a Service Instance and a Service Binding in the SAP BTP, Kyma runtime

Introduction

After you have learned that you can use services offered by SAP BTP in SAP BTP, Kyma runtime, you will learn in this exercise, how you can create Service Instances as well as Service Bindings in Kyma dashboard. You will also learn how to check for them in the SAP BTP cockpit.

Prerequisites

  • You have successfully created a Kyma runtime instance in the SAP BTP subaccount.
  • You have an entitlement for the Free Tier service plan of SAP Credential Store.

Disclaimer: In this exercise, we use the SAP Credential Store service to exemplify the service management process in Kyma runtime. To use this service, you must entitle it to your subaccount first. To learn how to do it, go to Prepare for SAP BTP Development with Kyma, step 5: Check and assign entitlements.

You can also execute this exercise with any other service of your choice.

Task 1: Set up a new namespace

Steps

  1. Create the namespace

    In this task, you will set up a new, clean namespace with the name service-management by following these steps:

    1. From the SAP BTP cockpit, follow the link to Kyma dashboard.

    2. Navigate to Namespaces and click Create.

    3. In the Name field, enter service-management and click Create.

      You will see the details of the service-management namespace in Kyma dashboard. Its status should be "active".

Task 2: Create a Service Instance using Kyma dashboard

Steps

    In this task, you will create a Service Instance with the SAP Credential Store service by following these steps:

  1. Go to Service Instances and click Create.

  2. Enter the following mandatory parameters:

    1. Name: credential-store

    2. Offering Name: credstore

    3. Plan Name: free

      Note

      If you use a different service, you can check for the parameters Offering Name and Plan Name in the Service Marketplace of the SAP BTP cockpit.
    4. Click Create.

    You will see the Service Instance in Kyma dashboard. Its status should be "Provisioned".

Task 3: Check the Service Instance in the SAP BTP Cockpit

Steps

  1. In this task, you will verify that the Service Instance you set up in your Kyma dashboard has also been successfully created in your SAP BTP cockpit.

    1. Navigate to your SAP BTP cockpit and then go to Services → Instances and Subscriptions.

    2. Check if the instance credential-storeis displayed in the list of instances. If it isn't, navigate back to your Kyma dashboard to double check that the status of your set up Service Instance is Provisioned.

    Note

    You can only manage Service Instances and Service Bindings in Kyma dashboard. If you want to delete them, you can't do it in the SAP BTP cockpit. Instead, you must use Kyma dashboard. However, if you want to check service details, like service names or plans, you can do so in the SAP BTP cockpit.

Task 4: Create a Service Binding using Kyma dashboard

Steps

    In this task, you will create a Service Binding for the Service Instance you just set up. This will automatically create a Kubernetes Secret with the binding metadata and credentials. Follow these steps:

  1. In Kyma dashboard, go to your credential-store Service Instance.

  2. Navigate to Service Bindings and click Create.

  3. Enter the following required parameters:

    1. Name: credstore-binding

    2. Service Instance Name: credential-store

  4. Click Create.

    You will see the credstore-binding Service Binding in Kyma dashboard. Its status should be Provisioned.

Task 5: Check the Service Binding in the SAP BTP cockpit

Steps

    In this task, you will verify that the Service Binding you set up in your Kyma dashboard has also been successfully created in your SAP BTP cockpit.

  1. Navigate to your SAP BTP Cockpit and then go to ServicesInstances and Subscriptions .

  2. Click on the credential-store Service Instance to view its details, where you will see the credstore-binding Service Binding.

    Note

    You can only manage Service Instances and Service Bindings in Kyma dashboard. If you want to delete them, you can’t do it in the SAP BTP cockpit. Instead, you must use Kyma dashboard. However, if you want to check service details, like service names or plans, you can do so in the SAP BTP cockpit.

Result

Congratulations! You have successfully completed this exercise about Service Management in SAP BTP, Kyma runtime. You created a Service Instance as well as a Service Binding in Kyma dashboard and verified them both in the SAP BTP cockpit.

Log in to track your progress & complete quizzes