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.
Before you start
Section titled “Before you start”| You need | Detail |
|---|---|
| A Kubernetes cluster, 1.30 or newer | Tested on 1.30 and 1.34. amd64 or arm64. IPv6-only clusters are not supported yet. |
| Three machines (nodes) for Peat | Each 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 it | Made 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 rights | The install file makes namespaces, object kinds and admission rules. |
psql, or any Postgres client | To 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.
1. Install the operator
Section titled “1. Install the operator”kubectl apply --server-side -f https://github.com/Zabaca/peat/releases/download/release-2026-11-29.3/peat.yamlThis 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.
kubectl get crd platforms.peat.zabaca.com databases.peat.zabaca.com2. Get the peat command
Section titled “2. Get the peat command”kubectl is enough for everything here, but the peat command is shorter. Each release carries it as one file for Linux and macOS:
curl -fsSL -o peat https://github.com/Zabaca/peat/releases/download/release-2026-11-29.3/peat-linux-x64chmod +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:
kubectl label node <node-1> <node-2> <node-3> peat.zabaca.com/machine=truePut the bucket’s key in a Secret named peat-store, in the peat namespace:
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:
kubectl apply -f https://raw.githubusercontent.com/Zabaca/peat/release-2026-11-29.3/control/examples/minio.yamlkubectl -n peat create secret generic peat-store \ --from-literal=AWS_ACCESS_KEY_ID=peat-try --from-literal=AWS_SECRET_ACCESS_KEY=peat-try-secret4. Describe the platform
Section titled “4. Describe the platform”The whole install is one object. Save this as platform.yaml and set the four values marked:
apiVersion: peat.zabaca.com/v1alpha1kind: Platformmetadata: name: peatspec: 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: LoadBalancerLeave 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:
curl -fsSL -o platform.yaml https://raw.githubusercontent.com/Zabaca/peat/release-2026-11-29.3/control/examples/trial.yamlApply it and watch:
kubectl apply -f platform.yamlkubectl get platform peat -wIt reads Installing, then Ready, once the images are pulled and every piece answers. peat status says the same with more detail.
5. If it does not become Ready
Section titled “5. If it does not become Ready”The short list is here; When something is wrong has more.
kubectl get platform peat -o wideThe 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 about | What to do |
|---|---|
| no machine is labelled | Run the kubectl label node command of step 3. |
the Secret peat-store is missing, or lacks a key | Run the kubectl create secret command of step 3. |
the store’s own error, for example NoSuchBucket or a refused key | Make the bucket, or correct the endpoint, the bucket’s name or the key. |
| an image cannot be pulled | release names a release that does not exist; check its spelling against the releases page. |
| a pod cannot be placed | Too 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.
6. Make a database
Section titled “6. Make a database”peat make orderspeat listor, with kubectl alone:
kubectl apply -f - <<'YAML'apiVersion: peat.zabaca.com/v1alpha1kind: Databasemetadata: name: ordersspec: pgVersion: 19YAMLA 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).
7. Connect
Section titled “7. Connect”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:
kubectl -n peat-gateway port-forward svc/pg-front 15432:5432 &kubectl get configmap peat-ca -o jsonpath='{.data.ca\.crt}' > peat-ca.crthost=$(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:
kubectl -n peat-gateway get svc pg-frontEach 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.
8. What you have now
Section titled “8. What you have now”- It sleeps when idle and wakes on the next connection: Sleep and wake.
- Branches and going back to a moment: Branches and restore.
- Read replicas: Read replicas.
- Every command: The peat command.
When a new release comes out: Upgrading. To take Peat out of a cluster: Removing Peat.
Limits to know
Section titled “Limits to know”- 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.