Add Pod Anti Affinity (#489)

* Add Pod Anti Affinity
This commit is contained in:
teuto.net Netzdienste GmbH
2019-02-21 16:37:03 +01:00
committed by Sergey Dudoladov
parent 2e9b6533e7
commit 26a7fdfa9f
6 changed files with 73 additions and 2 deletions
+8
View File
@@ -213,6 +213,14 @@ configuration they are grouped under the `kubernetes` key.
that should be assigned to the Postgres pods. The priority class itself must be defined in advance.
Default is empty (use the default priority class).
* **enable_pod_antiaffinity**
toggles [pod anti affinity](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/) on the Postgres pods, to avoid multiple pods
of the same Postgres cluster in the same topology , e.g. node. The default is `false`.
* **pod_antiaffinity_topology_key**
override
[topology key](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#interlude-built-in-node-labels)
for pod anti affinity. The default is `kubernetes.io/hostname`.
## Kubernetes resource requests