SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Consume a Shared Service Instance in Kyma

Create a reference to a shared service instance in a Kyma namespace and consume it, including cross-subaccount scenarios.

Overview

You will learn

  • ✔How to create a reference instance in a Kyma namespace using the SAP BTP Operator
  • ✔How to create a cross-subaccount reference instance
  • ✔How to use selectors instead of hardcoded instance IDs
  • ✔How to create a service binding for the reference instance
Nina Hingerl N Nina Hingerl November 3, 2026
Created on November 3, 2026
Contributors

More from Nina Hingerl

See all 5 tutorials by Nina Hingerl →

Prerequisites

  • In Choose a Service Sharing Method, you chose instance sharing for a Kyma consumer application.
  • In Create and Share a Source Service Instance, you created and shared a source instance.
  • You have the id of the shared source instance from Create and Share a Source Service Instance. To retrieve it, run btp get services/instance --subaccount <SUBACCOUNT_ID> --name <INSTANCE_NAME>.
  • Your Kyma cluster has the SAP BTP Operator module enabled.
  • You have permissions to create resources in the target namespace.
  • For cross-subaccount scenarios: You have the Subaccount Administrator role collection in the source subaccount.
  • You have installed and configured the btp CLI.
  • You have configured kubectl to connect to your Kyma cluster; see Access a Kyma Instance Using kubectl.
  • You have installed jq for JSON processing in verification steps.

Steps

Intro

Step 1 Determine your sharing scope
—

Is the shared source instance in the same subaccount as your Kyma cluster, or in a different subaccount?

Tip: If your consumer application and the source instance are in different namespaces but the same subaccount, you may not need instance sharing at all. The SAP BTP Operator supports cross-namespace bindings natively. Set serviceInstanceNamespace on your ServiceBinding to reference a ServiceInstance in another namespace directly. For details, see the ServiceBinding CR.

Step 2 Create a reference instance
+
Step 3 Create a cross-subaccount reference instance
+
Step 4 Use selectors instead of hardcoded IDs (optional)
+
Step 5 Create a service binding
+
Step 6 Understand lifecycle behavior
+
Step 7 Test yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 7
1. Determine your sharing scope 2. Create a reference instance 3. Create a cross-subaccount reference instance 4. Use selectors instead of hardcoded IDs (optional) 5. Create a service binding 6. Understand lifecycle behavior 7. Test yourself