SAP

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

Deploy Multi-Tenant Applications using CAP Operator

This tutorial shows you how to deploy your multi-tenant application in SAP BTP, Kyma runtime using the CAP Operator.

Overview

You will learn

  • How to deploy your multi-tenant application in SAP BTP, Kyma runtime using the CAP Operator.
Anirudh Prasad A Anirudh Prasad August 21, 2026
Created on March 27, 2026
Contributors

More from Anirudh Prasad

See all 6 tutorials by Anirudh Prasad →

Prerequisites

Prerequisites

Steps

Step 1 Add CAP Operator Helm chart

CAP Operator provides a plugin to generate a Helm chart for your CAP application.

  1. Add the CAP Operator plugin to your project by running the following command in your project root folder:

    Shell
    npm add @cap-js/cap-operator-plugin -D
  2. Run the following command to generate a Helm chart for your CAP application:

    Shell
    npx cds add cap-operator --with-templates

    As a result, you see a newly created chart folder in your project. The chart folder holds the Helm configuration, including the values.yaml file where you add your container images.

  3. Add your container image settings to your chart/values.yaml file:

    yaml[7,13,19,25]
    ...
    workloads:
        appRouter:
            ...
            deploymentDefinition:
                type: Router
                image: <your-container-registry>/incident-management-approuter:<image-version>
            ...
        server:
            ...
            deploymentDefinition:
                type: CAP
                image: <your-container-registry>/incident-management-srv:<image-version>
            ...
        contentDeploy:
            ...
            jobDefinition:
                type: Content
                image: <your-container-registry>/incident-management-html5-deployer:<image-version>
            ...
        tenantJob:
            ...
            jobDefinition:
                type: TenantOperation
                image: <your-container-registry>/incident-management-mtxs-sidecar:<image-version>
            ...
    ...
  4. Add the EXIT_PROCESS_AFTER_UPLOAD environment variable to the content deploy job in your chart/values.yaml file to ensure that the HTML5 deployer exits after the upload is complete:

    yaml[8,9]
    ...
    contentDeploy:
        ...
        jobDefinition:
            type: Content
            image: <your-container-registry>/incident-management-html5-deployer:<image-version>
            env:
            - name: EXIT_PROCESS_AFTER_UPLOAD
              value: "true"
    ...
Step 2 Deploy CAP Operator Helm chart
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 2
1. Add CAP Operator Helm chart 2. Deploy CAP Operator Helm chart
Next