top of page

Deploying CloudNative PostgreSQL with Argo CD

  • Writer: Decima
    Decima
  • Jan 20, 2023
  • 1 min read

CloudNative PostgreSQL (cloudnative-pg) is an open-source project that makes it easy to deploy and manage PostgreSQL clusters in cloud-native environments. It provides Kubernetes operators and Helm charts for deploying and managing PostgreSQL clusters on Kubernetes. Argo CD is a GitOps-based continuous delivery tool that can help you deploy and manage cloudnative-pg clusters in a declarative and automated way. In this guide, we'll show you how to use Argo CD to deploy and manage a cloudnative-pg cluster on a Kubernetes cluster.

Before you begin, you'll need to have Argo CD installed and set up. You can find more information on how to do that in the Argo CD documentation (https://argoproj.github.io/docs/argo-cd/getting_started/). Once you have Argo CD set up, you'll need to create a new application in Argo CD. An application in Argo CD is a collection of resources that are deployed together. To create a new application, you can use the Argo CD CLI or the Argo CD web UI. Here's an example of how you can create a new application using the Argo CD CLI:


argocd app create cloudnative-pg \
  --repo https://github.com/cloudnative-pg/cloudnative-pg-helm-chart.git \
  --path cloudnative-pg \
  --dest-server https://kubernetes.default.svc \
  --dest-namespace default

This command creates a new application called "cloudnative-pg" that is connected to the cloudnative-pg Helm chart repository on GitHub. The application is deployed to the "default" namespace on the Kubernetes cluster that Argo CD is connected to.

 
 
 

Recent Posts

See All
bottom of page