Skip to content
Snippets Groups Projects
Verified Commit 1ce64fef authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

feat(postgres): Avoid a postgres cluster on a single node

This patch makes sure that a PostgreSQL cluster doesn't end up on a single
node. This is done by defaulting to a pod anti-affinity based on the
kubernetes hostname label, that should make sure, that all stateful sets
are distributed properly.
parent f1430e41
Branches
Tags
No related merge requests found
...@@ -24,3 +24,5 @@ spec: ...@@ -24,3 +24,5 @@ spec:
runAsUser: null runAsUser: null
readOnlyRootFilesystem: true readOnlyRootFilesystem: true
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
configKubernetes:
enable_pod_antiaffinity: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment