When something is wrong
Start with the status. Peat says in words what it is waiting for.
peat status # the platform, each piece, and whykubectl get platform peat -o wide # the same, in one linepeat show orders # one databasekubectl get database -A # every database and where to reach itThe Platform is not Ready
Section titled “The Platform is not Ready”| The message is about | What to do |
|---|---|
| no machine labelled | kubectl label node <node> peat.zabaca.com/machine=true |
the Secret peat-store missing, or lacking a key | kubectl -n peat create secret generic peat-store --from-literal=AWS_ACCESS_KEY_ID=<key id> --from-literal=AWS_SECRET_ACCESS_KEY=<secret key> |
the store’s own error (NoSuchBucket, a refused key) | Make the bucket, or correct objectStore.endpoint, bucket or the key. This is only checked on a first install. |
| an image that cannot be pulled | release names a release that does not exist. Check it against the releases page. |
| a pod that cannot be placed | Fewer labelled machines than the spread needs, or too little free memory on them. |
| an object the operator did not make | Something else in the cluster already has that name. Peat leaves it alone; remove or rename it. |
| cert-manager or an issuer | You set certificates.issuer: install cert-manager, or correct the issuer’s name. |
The pods themselves are in the peat namespace: kubectl -n peat get pods, then kubectl -n peat logs <pod>.
The pieces cannot reach the bucket
Section titled “The pieces cannot reach the bucket”Each piece may only reach the addresses it needs. For a store with a public name, the private address ranges are left out, so a piece cannot reach other devices on your network. If your store has a public name that leads to a private address (an S3 interface endpoint, a MinIO behind split DNS), allow it:
spec: objectStore: egressExcept: []A client cannot connect
Section titled “A client cannot connect”- “connection refused” or a timeout from outside: check the front door has an address (
kubectl -n peat-gateway get svc pg-front), that your wildcard DNS name points at it, and that the client’s address is insidegateways.allowFrom. - A certificate error: the client must connect by the database’s name and trust the authority in the ConfigMap
peat-ca(peat ca > peat-ca.crt). Connecting by IP address fails the check. - It hangs, then works: the database was asleep and woke. Give clients a connect timeout of a minute.
- “SSL error: tlsv1 unrecognized name”: the front door has no open database of that name. Check the spelling
(
peat list -A); the database may also be closed (peat show <db>;peat open <db>), or being moved to a newer Postgres version. - One failed connection right after a database is made or woken: a client that connects in the first seconds can fail once. Retry.
A database does not become ready
Section titled “A database does not become ready”peat show <db> gives the reason. The usual ones: the platform itself is not Ready; no machine has memory for the compute
(kubectl -n peat-compute get pods); or it was made from a parent that does not exist in that namespace.
An upgrade halted
Section titled “An upgrade halted”peat status names the step and the failed check. Fix the cause and peat retry, or set the earlier release back.
Upgrading says more.
A machine is lost
Section titled “A machine is lost”With three machines the platform keeps working through the loss of one. The control layer replaces a lost safekeeper by itself, and
the storage controller moves the lost pageserver’s databases to the other. peat status says what is missing while a machine is gone.
Watching it over time
Section titled “Watching it over time”A dashboard and alerts are in Monitoring.
Asking for help
Section titled “Asking for help”Open an issue at github.com/Zabaca/peat/issues with the output of peat status, the release,
and your Kubernetes version. Leave out passwords and peat url output.