Deploy a Go MSSQL API Endpoint in the Kyma Runtime
March 22, 2021
Intermediate
40 min.
Develop and deploy an MSSQL API endpoint written in Go to the Kyma runtime.
You will learn
- How to configure and build a Go Docker image
- How to create a development Namespace in the Kyma runtime
- How to deploy the Go Docker image to the Kyma runtime
Prerequisites
This tutorial expects that the tutorial Deploying MSSQL in the Kyma Runtime has been completed and relies on the database running either locally or within the Kyma runtime. If you run the database in the Kyma runtime, make sure to use the port-forward
feature presented in the tutorial to expose the database to your local environment.
Deploying the image includes:
- A Kubernetes Secret to store the database user/password
- A Kubernetes
ConfigMap
to store the database configuration in - A Kubernetes Service used to expose the Go application to other Kubernetes resources
- A Kyma
APIRule
to expose the API to the Internet
Step 1: Clone the Git repository
Step 2: Explore the sample
Step 3: Run the application locally
Step 4: Build the Docker image
Step 5: Use the Docker image locally
Step 6: Apply resources to Kyma runtime
Step 7: Open the API endpoint