Skip to Content
Technical Articles

Run and Deploy a CAP Business Application on the Kyma Runtime

You might have already heard about the SAP Cloud Platform, Kyma runtime, and how you can use events and “functions as a service” to extend your applications. But you wonder how to build business applications for the Kyma runtime?
With this blog post, I want to give you an introduction on how to deploy and run business applications built with SAP Cloud Application Programming Model (CAP) on the Kyma runtime.

Kyma is a platform to extend applications with serverless functions and microservices
(https://kyma-project.io/)

…and it gives you a full-fledged Kubernetes cluster as well. Basically, you can run all applications on Kyma that can be packaged into a Docker Image. This works for Java and Node.js CAP applications as well.

But what about all the useful services that SAP provides for the Cloud Foundry runtime? The good news is, that you can use many*¬†of these services on the Kyma runtime as well. These services are exposed by SAP Service Manager using the Open Service Broker API. Kyma implements this API and the Kyma runtime is wired with the SAP Service Manager for your Subaccount. You can create service instances and inject the credentials into your Kubernetes pods based on your SAP Cloud Platform subaccount’s entitlements.

Kyma%20Console%20-%20The%20Graphical%20User%20Interface%20for%20Kyma

Kyma Console – The Graphical User Interface for Kyma

My colleagues and I from the SAP Cloud Platform Extension team created a tutorial to give you a first impression of CAP on Kyma. You can complete it with no prior knowledge about Kyma and Kubernetes.

The tutorial is based on a Node.js CAP example application (“Risk Management”). It already contains two CAP services and an SAP Fiori UI. So you don’t need to start from scratch.
If you’re interested in CAP on Kyma, then I encourage you to try it out. My colleagues and I would be happy to get your feedback. Just leave a comment here or create an issue for the tutorial.
To do the tutorial, create an SAP Cloud Platform Trial account or use your own SAP Cloud Platform subaccount and follow the instructions of the tutorial.

Screenshot%20from%20Risk%20Management%20example

Screenshot from Risk Management example

Additional Information

Footnotes

* Not all SAP Cloud Platform services are available for the Kyma runtime at the time this blog has been written.

4 Comments
You must be Logged on to comment or reply to a post.
    • Hi Pierre,

      I think this depends on the specific requirements of a project.

      As soon as CAP supports Kyma officially (This is not a product commitment), you have the choice to pick the runtime that fits best for your needs.

      Best Regards,
      Uwe

  • Hi Uwe,

    thank you for the great tutorial. I’ve just got it working in my Kyma Trial on SAP CP. Would be great if you would add also authentication to the tutorial. I’ve seen that “Authorization & Trust Management” is listed in the Kyma Service Catalog.

    Best regards
    Gregor

    • Hi Gregor,

      Thanks for the feedback.

      Yes, the XSUAA service is available. Unfortunately, you can’t use the AppRouter right now, because it requires JSESSIONID based session stickiness which is not supported by Kyma’s Envoy proxy. So it will not work with an AppRouter deployment that uses more than one pod.

      There are different possibilities for a solution. Hopefully, we I come back with one soon.

      Best regards,

      Uwe