Skip to main content
By default, SambaNova provisions a PostgreSQL instance within your cluster. To use an external PostgreSQL database instead of the in-cluster deployment, complete the following steps:

Step 1: Create the Secret

Option A: Base64-encoded Values

First, encode your database credentials:
Create a Kubernetes secret with base64-encoded values:
Apply the secret:

Option B: Using kubectl with Literal Values

Instead of manually encoding, you can create the secret with literal values:

Step 2: Update sambastack.yaml

Configure your sambastack.yaml to use the external database:
  • auth-and-billing.pgSecretName: References the Kubernetes secret containing database credentials
  • cloudnative-pg.enabled: false: Disables the in-cluster PostgreSQL deployment
See the SambaStack.yaml Reference for a full example.

Step 3: Apply the Configuration

Update your Helm deployment:

On-prem

Airgapped

Use your local copy of the Helm chart instead of the OCI registry path:
sambastack-<VERSION>.tgz is your local copy of the Helm chart used for the upgrade. Contact SambaNova Support if you need further assistance.
SambaNova provides the full registry URL and version number during handover. Contact your SambaNova representative for access credentials.
Ensure your external PostgreSQL database is accessible from the Kubernetes cluster and that network policies allow the connection.