Installing Required Dependencies (Valkey and PostgreSQL)

Prerequisite

Before installing Valkey and the Percona Postgres Operator, add the Percona Helm repository:

helm repo add percona https://percona.github.io/percona-helm-charts

To install the required dependencies—Valkey and the Percona Postgres Operator—run the following command:


kubectl -n "$NS" create secret generic valkey-password-secret \
  --from-literal=password='changeit' && \
helm upgrade --install valkey oci://registry-1.docker.io/bitnamicharts/valkey \
  -n "$NS" \
 --set global.security.allowInsecureImages=true \
  --set image.repository=bitnamilegacy/valkey \
  --set auth.existingSecret=valkey-password-secret \
  --set auth.existingSecretPasswordKey=password \
  --set architecture=standalone \
  --set replica.replicaCount=1 && \
helm install pg-operator percona/pg-operator \
  --version 2.8.0 \
  -n "$NS"

Note: The pg-operator is installed automatically in the same namespace specified by `-n "$NS"`.
Note:
  1. Replace <namespace> with the Kubernetes namespace where you want the components installed.
  2. The value changeit is used as the Valkey password in this example.
  3. To automatically install the database, ensure that the Helm chart variable global.postgres.usePercona is set to true (this is the default).

Installing Percona PostgreSQL Operator

To enable PostgreSQL support for UnO Agentic AI Builder, you must install the Percona PostgreSQL Operator in your Kubernetes cluster.

You can install the operator using Helm with one of the following options:

Option 1: Watch a Specific Namespace

Use this option if the operator should manage PostgreSQL clusters only in a single namespace.


helm install pg-operator percona/pg-operator \
  --version 2.8.0 \
  -n <namespace> --set watchNamespace="$NS"

Option 2: Watch All Namespaces

Use this option if the operator should manage PostgreSQL clusters across all namespaces.


helm install pg-operator percona/pg-operator \
  --version 2.8.0 \
  -n <namespace> --set watchAllNamespaces=true

For more details, see the official Helm chart documentation: https://artifacthub.io/packages/helm/percona/pg-operator