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

Deploy a Go PostgreSQL API Endpoint in SAP BTP, Kyma Runtime

Develop and deploy an PostgreSQL API endpoint written in Go to SAP BTP, Kyma runtime.

Overview

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

You will learn

  • โœ”How to configure and build a Go Docker image
  • โœ”How to deploy the Go Docker image to SAP BTP, Kyma runtime
Unknown U Unknown April 13, 2026
Created by February 13, 2026
Contributors

Prerequisites

Steps

Intro

This tutorial expects that the tutorial Use and Seed SAP BTP PostgreSQL in SAP BTP, Kyma Runtime has been completed. The Go API will connect to the BTP-managed PostgreSQL instance using the Service Binding Secret available in the Kyma cluster.

Deploying the image includes:

  • A Kubernetes ConfigMap to store the database host configuration
  • A Kubernetes Service to expose the Go application to other Kubernetes resources
  • A Kyma APIRule to expose the API to the Internet
  • References to the PostgreSQL Service Binding Secret for credentials

Step 1 Clone the Git repository
โ€”

  1. In your browser, go to kyma-runtime-samples. This repository contains a collection of Kyma sample applications which will be used during the tutorial.

  2. Use the Code button to choose one of the options to download the code locally, or simply run the following command within 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 Build the Docker image
+
Step 4 Apply resources to SAP BTP, Kyma runtime
+
Step 5 Open the API endpoint
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Clone the Git repository 2. Explore the sample 3. Build the Docker image 4. Apply resources to SAP BTP, Kyma runtime 5. Open the API endpoint

Learn more →