Deploy a Go PostgreSQL API Endpoint in SAP BTP, Kyma Runtime
Intermediate
40 min.
Develop and deploy an PostgreSQL API endpoint written in Go to SAP BTP, Kyma runtime.
You will learn
- How to configure and build a Go Docker image
- How to deploy the Go Docker image to SAP BTP, Kyma runtime
Prerequisites
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