Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I think something is missing here. The replicas will not have the same state of the db so you actually need to create an actual replication.
It looks like all the replicas will write to the same volume without sync, right? It doesn’t look like the right way to do it.
This is my firs time working with kubernetes, after following this guide step by step y get this error y alredy made this double to double chekc everything its fine:
psql: error: connection to server at “localhost” (::1), port 5432 failed: FATAL: database “ps_db” does not exist
command terminated with exit code 2
I have a few questions:
**persistentVolumeClaim** refers to a PersistentVolumeClaim named “postgres-volume-claim”. This claim is likely used to provide persistent storage to... Are you not sure?? I’m guessing this article was made with ChatGPT haha.
Why would you use a Deployment here? All pods will end up using the same storage and interfere with each other. Do yourself a favour and don’t follow this “guide”.
AFAIK this is NOT the correct procedure to scale up PG databases. This will likely corrupt your data.
This is insane! READ https://www.postgresql.org/docs/current/runtime-config-replication.html
This tutorial should be removed, as Mistral says correctly when reviewing it:
The tutorial you linked does not implement synchronization of PostgreSQL nodes in a way that ensures high availability and data consistency across multiple nodes. The setup described in the tutorial uses a Deployment with multiple replicas, but it does not configure PostgreSQL replication. This means that all the replicas will be writing to the same persistent volume, which can lead to data corruption and conflicts.