Skip to content

Commit 2e9b653

Browse files
authored
Document taint-based eviction (zalando#468)
* Document taint-based eviction
1 parent d11b23b commit 2e9b653

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: docs/administrator.md

+6
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ data:
146146
...
147147
```
148148

149+
Note that the Kubernetes version 1.13 brings [taint-based eviction](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/#taint-based-evictions) to the beta stage and enables it by default.
150+
Postgres pods by default receive tolerations for `unreachable` and `noExecute` taints with the timeout of `5m`.
151+
Depending on your setup, you may want to adjust these parameters to prevent master pods from being evicted by the Kubernetes runtime.
152+
To prevent eviction completely, specify the toleration by leaving out the `tolerationSeconds` value (similar to how Kubernetes' own DaemonSets are configured)
153+
149154
### Add cluster-specific labels
150155

151156
In some cases, you might want to add `labels` that are specific to a given
@@ -197,6 +202,7 @@ spec:
197202
...
198203
```
199204

205+
200206
## Custom Pod Environment Variables
201207

202208
It is possible to configure a ConfigMap which is used by the Postgres pods as

0 commit comments

Comments
 (0)