Blog: Continuous microservices with databases in Jenkins X

Link
2021-06-25 ~1 min read jenkins-x.io #jenkins-x

⚡ TL;DR

Continuous microservices with databases in Jenkins X Before you start Create the quickstart How does it work Previews How we can improve More languages and frameworks Cloud databases More modularity options Conclusion A common question we get asked on the Jenkins X project is how to get started creating microservices that use databases with automated CI/CD with GitOps Promotion and Preview Environments. To make things a little easier to get started we’ve created a new node-postgresql quickstart.

📝 Summary

Continuous microservices with databases in Jenkins X Before you start Create the quickstart How does it work Previews How we can improve More languages and frameworks Cloud databases More modularity options Conclusion A common question we get asked on the Jenkins X project is how to get started creating microservices that use databases with automated CI/CD with GitOps Promotion and Preview Environments. To make things a little easier to get started we’ve created a new node-postgresql quickstart. If you are using the cloud then we prefer cloud over kubernetes for things like databases, storage, ingress and secret managers so please try use your clouds managed databases if you can. So ideally you’d set up your database via your infrastructure as code solution, such as terraform , and then associate your kubernetes Service Account to a cloud IAM role to access the database. However to provide something simple that just works in any kubernetes cluster this quickstart uses the postgres-operator to manage setting up each database cluster in each environment. So to be able to use this quickstart you will need to install this operator into your cluster. You can add charts to your cluster via the CLI. From inside a git clone of your cluster git repository run the following command: jx gitops helmfile add --chart commonground/postgres-operator --repository https://charts. commonground. nl/ --namespace postgres --version 1.6.2 jx gitops helmfile add --chart commonground/postgres-operator --repository https://charts. commonground. nl/ --namespace postgres --version 1.6.2 This will modify the helmfile.