SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Use and Seed SAP BTP PostgreSQL in SAP BTP, Kyma Runtime

Use a BTP-managed PostgreSQL instance with Kyma workloads and seed it with sample data.

Overview

🎓 intermediate 25 min. SAP BTP Kyma RuntimeIntermediateCloudSAP Business Technology Platform

You will learn

  • โœ”How to use a Kyma Service Binding Secret that points to an SAP BTP PostgreSQL instance
  • โœ”How to seed the PostgreSQL database with sample schema and data using a Kubernetes Job
Unknown U Unknown April 9, 2026
Created by February 27, 2026
Contributors

Prerequisites

Steps

Intro

In this tutorial, you will provision a managed PostgreSQL instance on SAP BTP, bind it to your Kyma workload namespace, configure network access, and seed the database with a sample schema and data using a Kubernetes Job.


Step 1 Clone the Git repository
โ€”

  1. Go to the kyma-runtime-samples repository. This repository contains a collection of Kyma sample applications which will be used during the tutorial.

  2. Use the green Code button to choose one of the options to download the code locally, or simply run the following command using your CLI at your desired folder location:

    Shell/Bash
    git clone https://github.com/SAP-samples/kyma-runtime-samples
Step 2 Explore the sample
+
Step 3 Add PostgreSQL entitlements
+
Step 4 Apply ServiceInstance and ServiceBinding manifests
+
Step 5 Ensure PostgreSQL allows access
+
Step 6 Seed the PostgreSQL database
+
Step 7 Verify the data from inside the cluster
+
Step 8 Clean up
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 8
1. Clone the Git repository 2. Explore the sample 3. Add PostgreSQL entitlements 4. Apply ServiceInstance and ServiceBinding manifests 5. Ensure PostgreSQL allows access 6. Seed the PostgreSQL database 7. Verify the data from inside the cluster 8. Clean up

Learn more →