Setup SAP Event Mesh as your eventing backend for Kyma Runtime
June 14, 2022 ยท View on GitHub
Setup steps
1. Add the required entitlements to your SAP BTP subaccount
-
In your BTP subaccount, select
Entitlements->Configure Entitlements.
-
Select
Add Service Plans.
-
Search for
Event Mesh. Then, select itsdefaultandstandard (Application)plans and selectAdd 2 Service Plans.
-
Save your changes by selecting
Save.
2. Create an instance of SAP Event Mesh service in your Kyma Runtime (default plan)
-
Go to your Kyma workspace and select
Namespaces. Then, select your namespace. For example, select thecdcnamespace.
-
Select
Service Management->BTP Service Instancesand selectCreate Service Instance +.
-
Enter the name of the instance as
enterprise-messaging-client-1, theOffering Nameasenterprise-messaging, thePlan Nameasdefault. Then, select the YAML tab.
-
Within the YAML tab, add the parameters listed in the next step.

-
Copy and paste the following JSON code snippet into the parameters field.
{ "options": { "management": true, "messagingrest": true, "messaging": true }, "rules": { "topicRules": { "publishFilter": [ "${namespace}/*" ], "subscribeFilter": [ "${namespace}/*" ] }, "queueRules": { "publishFilter": [ "${namespace}/*" ], "subscribeFilter": [ "${namespace}/*" ] } }, "version": "1.1.0", "emname": "enterprise-messaging-client-1", "namespace": "default/sap.kyma.custom/cdc.1" } -
Review the JSON code snippet to ensure that the value of
emnameis the same as the instance name. Then, select Create.
-
Wait for the status of the service instance to change to
PROVISIONED. Then, selectService Management->BTP Service Bindingsand selectCreate Service Binding +.
-
For
Nameenterenterprise-messaging-client-1-bindingand forService Instance Name, selectenterprise-messaging-client-1. Then, selectCreate.
3. Switch the default eventing of Kyma Runtime from NATS to SAP Event Mesh
-
After the previous step, wait for the status of the service instance binding to change to
PROVISIONED. Then, select the service binding. For example,enterprise-messaging-client-1-binding.
-
Select the secret.

-
Select
Editto edit the secret.
-
Select the
YAMLtab.
-
Enter the following YAML code snippet to add the
kyma-project.io/eventing-backend: beblabel to the Secret. Then, selectUpdate.labels: kyma-project.io/eventing-backend: beb
Optional steps to setup SAP Event Mesh Enterprise Messaging application in your SAP BTP cockpit
Note: The following steps are optional and allow you to view, manage and monitor the SAP Event Mesh Enterprise Messaging application within your SAP BTP cockpit.
1. Create a subscription for SAP Event Mesh service in your SAP BTP account (standard plan)
-
Within your BTP subaccount, go to Services > Service Marketplace, search for Event Mesh and click Create.

-
Select the standard plan and click create.

2. Assign the required Role Collections to the admin user
-
Assign the required Role Collections to the admin user. In your BTP subaccount, select
Security->Users. Search for your user. Then, select the right arrow below the `Actions' column.
-
Scroll down and click on the three dots below
Role Collections. Then selectAssign Role Collection.
-
Select all the following options and select
Assign Role Collection.- Enterprise Messaging Administrator
- Enterprise Messaging Developer
- Enterprise Messaging Display
- Enterprise Messaging Subscription Administrator
- Event Mesh Integration Administrator

3. Navigate to the SAP Event Mesh Enterprise Messaging application
-
Go to
Services->Instances and Subscriptionsand select theEvent Meshapplication.
-
Select
kyma-enterprise-messaging-client.
-
Navigate through the various tabs and explore the user interface of the SAP Event Mesh Enterprise Messaging application.

Refer to the following documentation page for more information :arrow_lower_right:
Use Kyma Eventing with SAP Event Mesh
Navigation
| :house: | :arrow_backward: Setup : Step 6 - Apply the Webhook Event Subscription | :arrow_forward: Verification : Step 1 - Verify that all the resources of the app are running |
|---|