From 2e9b6533e7d5e7b42762542185612e609bc7b9f5 Mon Sep 17 00:00:00 2001 From: Sergey Dudoladov Date: Wed, 20 Feb 2019 10:19:15 +0100 Subject: [PATCH] Document taint-based eviction (#468) * Document taint-based eviction --- docs/administrator.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/administrator.md b/docs/administrator.md index 8abd31c55..be53eaf2d 100644 --- a/docs/administrator.md +++ b/docs/administrator.md @@ -146,6 +146,11 @@ data: ... ``` +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. +Postgres pods by default receive tolerations for `unreachable` and `noExecute` taints with the timeout of `5m`. +Depending on your setup, you may want to adjust these parameters to prevent master pods from being evicted by the Kubernetes runtime. +To prevent eviction completely, specify the toleration by leaving out the `tolerationSeconds` value (similar to how Kubernetes' own DaemonSets are configured) + ### Add cluster-specific labels In some cases, you might want to add `labels` that are specific to a given @@ -197,6 +202,7 @@ spec: ... ``` + ## Custom Pod Environment Variables It is possible to configure a ConfigMap which is used by the Postgres pods as