Skip to content

Install Peat on your cluster

This is the path from an empty Kubernetes cluster to a Postgres database you can connect to. It is a few minutes of typing and a wait for images to pull. To see Peat work before you give it a cluster, run the two-minute laptop trial in the README first.

Every command below names release-2026-11-29.3. Newer releases are listed at github.com/Zabaca/peat/releases; use one name throughout.

You needDetail
A Kubernetes cluster, 1.30 or newerTested on 1.30 and 1.34. amd64 or arm64. IPv6-only clusters are not supported yet.
Three machines (nodes) for PeatEach keeps data on a local directory (/var/lib/peat by default, which Peat makes) or on a storage class you name. Three is the fewest that survives the loss of one (why). One machine is enough for a trial.
An S3-compatible bucket and a key for itMade by you, before the install. AWS S3, Cloudflare R2, MinIO and others work. This is where the databases’ data lives for good.
kubectl with cluster-admin rightsThe install file makes namespaces, object kinds and admission rules.
psql, or any Postgres clientTo connect at the end.

You do not need cert-manager, an ingress controller or a Postgres operator. Peat signs its databases’ certificates with an authority of its own unless you name a cert-manager issuer.

No bucket to hand? For a trial only, step 3 has a one-line MinIO inside the cluster. Its data goes when its pod goes.

Terminal window
kubectl apply --server-side -f https://github.com/Zabaca/peat/releases/download/release-2026-11-29.3/peat.yaml

This makes Peat’s two object kinds, Platform and Database, four namespaces (peat, peat-compute, peat-gateway, peat-db) and the operator in a namespace of its own. Nothing else runs yet.

Terminal window
kubectl get crd platforms.peat.zabaca.com databases.peat.zabaca.com

kubectl is enough for everything here, but the peat command is shorter. Each release carries it as one file for Linux and macOS:

Terminal window
curl -fsSL -o peat https://github.com/Zabaca/peat/releases/download/release-2026-11-29.3/peat-linux-x64
chmod +x peat && sudo mv peat /usr/local/bin/

The other builds are peat-linux-arm64, peat-darwin-arm64 and peat-darwin-x64; SHA256SUMS on the release page has their checksums. It talks to the cluster with your own Kubernetes login, as kubectl does.

3. Name the machines and give Peat the bucket’s key

Section titled “3. Name the machines and give Peat the bucket’s key”

Label the machines Peat may use:

Terminal window
kubectl label node <node-1> <node-2> <node-3> peat.zabaca.com/machine=true

Put the bucket’s key in a Secret named peat-store, in the peat namespace:

Terminal window
kubectl -n peat create secret generic peat-store \
--from-literal=AWS_ACCESS_KEY_ID=<key id> \
--from-literal=AWS_SECRET_ACCESS_KEY=<secret key>

For a trial without a bucket, make a MinIO in the cluster and use its key:

Terminal window
kubectl apply -f https://raw.githubusercontent.com/Zabaca/peat/release-2026-11-29.3/control/examples/minio.yaml
kubectl -n peat create secret generic peat-store \
--from-literal=AWS_ACCESS_KEY_ID=peat-try --from-literal=AWS_SECRET_ACCESS_KEY=peat-try-secret

The whole install is one object. Save this as platform.yaml and set the four values marked:

apiVersion: peat.zabaca.com/v1alpha1
kind: Platform
metadata:
name: peat
spec:
release: release-2026-11-29.3
objectStore:
endpoint: https://s3.example.com # your store's address
region: us-east-1 # its region
bucket: peat-data # your bucket
credentialsSecret: peat-store
gateways:
domain: db.example.com # only to reach databases from outside the cluster; see step 7
service:
type: LoadBalancer

Leave the gateways block out if databases are only used from inside the cluster.

For a trial on one machine, use the ready-made file instead. It puts every piece on the one labelled machine and names the MinIO from step 3:

Terminal window
curl -fsSL -o platform.yaml https://raw.githubusercontent.com/Zabaca/peat/release-2026-11-29.3/control/examples/trial.yaml

Apply it and watch:

Terminal window
kubectl apply -f platform.yaml
kubectl get platform peat -w

It reads Installing, then Ready, once the images are pulled and every piece answers. peat status says the same with more detail.

The short list is here; When something is wrong has more.

Terminal window
kubectl get platform peat -o wide

The Message column says what it is waiting for. What Peat needs from you is checked before anything is made, and each missing thing is reported with the command that fixes it:

The message is aboutWhat to do
no machine is labelledRun the kubectl label node command of step 3.
the Secret peat-store is missing, or lacks a keyRun the kubectl create secret command of step 3.
the store’s own error, for example NoSuchBucket or a refused keyMake the bucket, or correct the endpoint, the bucket’s name or the key.
an image cannot be pulledrelease names a release that does not exist; check its spelling against the releases page.
a pod cannot be placedToo few labelled machines for the spread, or not enough memory on them.

A store behind a private address under a public name (an S3 interface endpoint, a private MinIO with a public DNS name) needs objectStore.egressExcept: []; Installing says why.

Terminal window
peat make orders
peat list

or, with kubectl alone:

Terminal window
kubectl apply -f - <<'YAML'
apiVersion: peat.zabaca.com/v1alpha1
kind: Database
metadata:
name: orders
spec:
pgVersion: 19
YAML

A database is an object in whatever namespace you make it in; its name is unique across the platform. Peat puts two things beside it, in the same namespace: the Secret orders-login (username, password, host and a full connection URL) and the ConfigMap peat-ca (the certificate authority, for sslmode=verify-full).

From a pod in the cluster. Mount the Secret orders-login and use its url, or connect to orders.peat-db.svc on port 5432 with the Secret’s username and password.

From your own machine, for a first look. No domain needed:

Terminal window
kubectl -n peat-gateway port-forward svc/pg-front 15432:5432 &
kubectl get configmap peat-ca -o jsonpath='{.data.ca\.crt}' > peat-ca.crt
host=$(kubectl get database orders -o jsonpath='{.status.host}')
PGPASSWORD=$(kubectl get secret orders-login -o jsonpath='{.data.password}' | base64 -d) \
psql "host=$host hostaddr=127.0.0.1 port=15432 user=app dbname=app sslmode=verify-full sslrootcert=peat-ca.crt"

From outside the cluster, for real use. Set gateways.domain and gateways.service.type: LoadBalancer (or NodePort) in the Platform, and point a wildcard DNS name (*.db.example.com) at the front door’s address:

Terminal window
kubectl -n peat-gateway get svc pg-front

Each database is then <name>.db.example.com on port 5432, and peat url orders prints its connection URL. That URL holds the password, so do not paste it into a log or a shared screen. To limit who may reach the front door, set gateways.allowFrom to your address ranges.

When a new release comes out: Upgrading. To take Peat out of a cluster: Removing Peat.

  • Alpha: the API is peat.zabaca.com/v1alpha1, and a field may change between releases.
  • One Platform per cluster. Peat takes over nothing it did not make, so it cannot adopt an existing Neon install.
  • There is no latest: images are named by release.