package
0.0.0-20230402125505-cb64f0529807
Repository: https://github.com/yanhan/sysadmin-library.git
Documentation: pkg.go.dev

# README

About

Golang code that connects to RDS MySQL over TLS.

In main.go, the handler for the / endpoint will make a connection to a table in a MySQL database to extract a value.

RDS CA Cert bundle

Download the TLS CA cert bundle from: https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem

Build

./build

Then push the image to Docker Hub.

Deploying

Create a k8s Secret object named tls-rds, with the following data fields:

  • DB_HOST
  • DB_USER
  • DB_PASSWORD

Then run:

kubectl apply -f ./manifest.yml

References