BTP Kyma Part 1: What Kyma Runtime Is and When to Use It
Free sample lesson · open to everyone
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 sectionsHide sections
Visual overview
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
Kyma runtime architecture
Kyma Runtime · Chapter-specific technical teaching map
Component relationships
Kyma runtime
Kubernetes workloads
BTP service binding
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…
Code example
===== 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 hardcodedWatch 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?
Question 2 of 3
A team without Kubernetes skills plans to use Kyma for a simple CAP app. What is the better advice?
Question 3 of 3
What is Kyma runtime on SAP BTP?
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
Interview questions on this topic
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.