SAP

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

You will learn

  • How to configure and build a Go Docker image
  • How to deploy the Go Docker image to SAP BTP, Kyma runtime
grego952 g grego952 August 21, 2026
Created on April 13, 2026
Contributors

More from Grzegorz Karaluch

See all 13 tutorials by Grzegorz Karaluch →

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
Next