In-cluster PostgreSQL using Crunchydata

It is possible to deploy Immuta without the use of cloud provided managed services by using enterprise-ready tools for kubernetes.

This article describes deploying a PostgreSQL cluster in the Immuta installation namespace and pointing the Immuta application at this cluster for deployment

Crunchy PostgreSQL for Kubernetes

This section relies heavily on Crunchydata's installation documentation guide found at the link below and assumes you have forked and cloned their examples repository.

Install the Operator

Create a cluster

immuta-pg-values.yaml

Connect to the cluster

Enable pgcrypto and set search path

Immuta LTS Installation

Install Immuta with the db information in your environment.

immuta-crunchy-2024.2.yaml

Backups

In order to configure backups, edit the PostgresCluster resource to look approximately like the following:

This config creates a cronjob for taking a nightly backup and allows an adhoc backup via annotation: