Cloud-Provider Backend Database :: Kloudfuse Docs

Cloud-Provider Backend Database

Kloudfuse uses a Postgres database for storing data. By default, a postgresql server is bundled with Kloudfuse. However, there are certain situations where the database needs to be installed outside of the Kubernetes cluster.

Setup Cloud Database

Minimum Requirements

Google Cloud Provider (GCP)

Click the link to get started with Google Cloud Databases

Amazon Web Services (AWS)

Click the link to get started with AWS RDS for Postgres

Microsoft Azure

Click the link to get started with Azure Database for PostgreSQL

Database Credentials

When creating the database.

It requires Admin privileges not just for reading/writing but also managing database and table schemas.

Create a Kubernetes secret kfuse-pg-credentials by running the command below.

NOTE: Replace YOUR_PASSWORD with the actual password you intend to use. Be cognizant of how your shell handles special characters.

export PG_CREDENTIAL="YOUR_PASSWORD"
kubectl create secret generic kfuse-pg-credentials \
  --from-literal=postgres-password="$PG_CREDENTIAL" \
  --from-literal=postgresql-password="$PG_CREDENTIAL" \
  --from-literal=postgresql-replication-password="$PG_CREDENTIAL"
unset PG_CREDENTIAL

Configure Helm Chart

Update the custom-values.yaml with the following parameters

installKfusePgCredentials: false

global:
  configDB:
    host: <HOST DATABASE DNS>
  orchestratorDB:
    host: <HOST DATABASE DNS>

kfuse-configdb:
  enabled: false

ingester:
  postgresql:
    enabled: false

Apply these changes via helm. To verify that it is working,

This might take a few minutes, however if either ingester or az-service is encountering problems, you should check the pods logs to see what errors it is encountering.