change merging nodeAffinity expression

This commit is contained in:
Felix Kunde
2022-01-06 09:03:22 +01:00
parent ced0eae14a
commit 541a484264
4 changed files with 61 additions and 16 deletions
+7 -2
View File
@@ -343,8 +343,13 @@ configuration they are grouped under the `kubernetes` key.
considered `ready`. The operator uses values of those labels to detect the
start of the Kubernetes cluster upgrade procedure and move master pods off
the nodes to be decommissioned. When the set is not empty, the operator also
assigns the `Affinity` clause to the Postgres pods to be scheduled only on
`ready` nodes. The default is empty.
assigns the `nodeAffinity` clause to the Postgres pods to be scheduled only
on `ready` nodes. If a `nodeAffinity` is specified in the postgres cluster
manifest as well the `nodeSelectorTerms` will get merged. If the
`nodeAffinity` of the manifest contains only one `matchExpressions` slice
the node readiniess label expressions will be moved there (AND condition).
When multiple selector expressions are defined in the manifest an extra
`matchExpressions` section is appended (OR condition). The default is empty.
* **toleration**
a dictionary that should contain `key`, `operator`, `value` and
+4
View File
@@ -703,6 +703,10 @@ spec:
- pci
```
If you need to define a `nodeAffinity` for all your Postgres clusters use the
`node_readiness_label` configuration option, which allows you to define a list
of key-value pairs.
## In-place major version upgrade
Starting with Spilo 13, operator supports in-place major version upgrade to a