ERPClimb logoERPClimb
Kyma Runtime
BTP & Integrationbeginner 5 min read

BTP Kyma Part 1: What Kyma Runtime Is and When to Use It

Free sample lesson · open to everyone

Key takeaway

Kyma is SAP's managed Kubernetes runtime on BTP. Learn what it offers (namespaces, deployments, services, modules like Istio, API Gateway, Serverless and Eventing), how it integrates with BTP services, and when to choose it over Cloud Foundry.

In this lessonShow sections

Visual overview

KYMA RUNTIMEChoosing and using KymaManaged Kubernetes on SAP BTP?Need containers or K8s tooling?Microservices, events, custom imagesNo → Cloud Foundry may be simplerYes1Enable KymaCluster provisioned from subaccountKyma2Namespaces & workloadsDeployments, services, podskubectl3BTP servicesServiceInstance/ServiceBinding via operatorOperatorExposed securelyAPIRule via API Gateway & IstioAPIRuleTip: create a namespace per app or team — never use default.

The situation: a real project scenario

A retail customer needed a custom event-driven microservice reacting to S/4HANA events. Kyma with Eventing and Serverless fit the pattern, and the team had Kubernetes skills — delivery was fast.

Explanation

This series on Kyma covers what it is, deploying and exposing a service, and APIRules, Istio and security across three parts — this lesson is the first. Kyma is a managed Kubernetes cluster that gets provisioned directly from a BTP subaccount. Workloads run as containers organized into deployments and services, all scoped within namespaces.

A set of modules adds specific capabilities on top of the base cluster: Istio provides a service mesh, API Gateway provides APIRules for exposing services, Serverless supports functions, and Eventing handles event-driven patterns. BTP services themselves are consumed through the BTP service operator, using ServiceInstance and ServiceBinding resources in Kubernetes terms.

A real constraint worth being honest about is that Kyma requires genuine Kubernetes skills, and without them, Cloud Foundry is often the better choice for a team. A sensible way to get oriented is to start with the Kyma dashboard to see namespaces and resources visually, before switching over to kubectl for more detailed work.

Running everything in the default namespace is a common early mistake, since it makes access control and later cleanup much harder than if resources had been separated from the start. The situations where Kyma genuinely fits are containerized and microservice-based workloads, event-driven architectures, and scenarios that need custom tooling Cloud Foundry doesn't offer.

In practice, this means enabling Kyma in a subaccount, downloading the kubeconfig and listing namespaces, and deploying a sample container — the goal being a pod running successfully in your own namespace.

Expert visual walkthrough

BTP ACADEMY · PART 1 · Component relationshipsERPClimb.com

Kyma runtime architecture

Kyma Runtime · Chapter-specific technical teaching map

Component relationships

1Central concept

Kyma runtime

2Connected capability

Kubernetes workloads

3Connected capability

BTP service binding

4Connected capability

API exposure / monitoring

Tutor's chapter takeaway

Kyma is SAP's managed Kubernetes runtime on BTP. Learn what it offers (namespaces, deployments, services, modules like Istio, API Gateway, Serverless and Eventing), how it integrates with BTP services, and when to choose it over Cloud Foundry.

In a real project

A retail customer needed a custom event-driven microservice reacting to S/4HANA events. Kyma with Eventing and Serverless fit the pattern, and the team had Kubernetes skills — delivery was fast.

Watch out for

• Adopting Kyma without the team having Kubernetes skills leads to slow delivery and operational struggles — choose Cloud Foundry instead when the team lacks those skills. • Deploying everything into the default namespace…

Conceptual study map, not an SAP configuration screenshot or a guaranteed runtime sequence. Consult the lesson for implementation prerequisites and exceptions.

Code example

ABAP Code
===== BASICS =====kubectl create namespace orders   # isolates this app's resources from other workloads sharing the clusterkubectl apply -n orders -f deployment.yaml   # creates/updates the pods, service, etc. defined in the manifestkubectl get pods -n orders   # confirms the pods actually started and reached Running ===== BTP SERVICE VIA OPERATOR =====apiVersion: services.cloud.sap.com/v1kind: ServiceInstance   # the SAP BTP service operator watches this object and provisions the real XSUAA instance in BTPmetadata: { name: orders-xsuaa }spec: { serviceOfferingName: xsuaa, servicePlanName: application }   # which BTP service and plan to provision---kind: ServiceBinding → secret with credentials mounted into the pod   # binding generates a Secret the app reads at runtime, so credentials are never hardcoded

Watch out

Common mistakes

  • Adopting Kyma without the team having Kubernetes skills leads to slow delivery and operational struggles — choose Cloud Foundry instead when the team lacks those skills.
  • Deploying everything into the default namespace makes access control and cleanup difficult as the landscape grows — use dedicated namespaces per app or team.
  • Hard-coding secrets instead of consuming them through service bindings exposes credentials in manifests — use the BTP service operator and bindings.
  • Ignoring which Kyma modules (Istio, API Gateway, Serverless, Eventing) are actually needed leads to either missing capabilities or unnecessary complexity — enable only the modules the use case requires.
  • Skipping resource limits on workloads risks one app starving others on the same cluster — set CPU/memory limits per workload.

Do this

Best practices

  • Choose Kyma over Cloud Foundry based on team Kubernetes skills and the use case (containers, microservices, event-driven workloads).
  • Organize workloads into namespaces per app or team rather than the default namespace.
  • Consume BTP services through the service operator (ServiceInstance/ServiceBinding), not hard-coded secrets.
  • Enable only the Kyma modules a use case actually needs.
  • Set resource limits on workloads to prevent one app from starving others.

In the interview

Interview angle

Questions: "What is Kyma?", "Kyma vs Cloud Foundry?", "How do Kyma apps use BTP services?"
Strong answer: managed K8s, workloads, modules, service operator, choice criteria.

Practice this lesson

Quick check

0 of 3 questions attempted

Question 1 of 3

Interviewers often ask candidates to explain the difference between Cloud Foundry and Kyma environments on BTP and when to choose each. In the Kyma Runtime context, which answer shows the strongest practical judgment?

Practise this in an interview

Answer in your own words and get instant feedback, the way an interviewer would judge it.

1What are the core concepts of Kyma Runtime, and how would you explain them clearly in an SAP interview?

2A retail customer needs an event-driven microservice reacting to S/4HANA events. When would you choose Kyma and why?

See it in code

Each example starts from a requirement, shows the design, then the code step by step with a plain-language explanation of every part.

Was this lesson helpful?

Keep exploring

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.