Make K8s retriable HTTP status code configurable (#2585)

Configuration parameter is `kubernetes.retriable_http_codes` or `PATRONI_KUBERNETES_RETRIABLE_HTTP_CODES` environment variable.

These status codes are added to the default list of 500, 503, 504.

Close https://github.com/zalando/patroni/issues/2536
This commit is contained in:
Alexander Kukushkin
2023-03-10 09:38:12 +01:00
committed by GitHub
parent 8622fcea3d
commit eefa15b390
8 changed files with 54 additions and 8 deletions
+1
View File
@@ -59,6 +59,7 @@ config = {
"use_endpoints": False,
"pod_ip": "127.0.0.1",
"ports": [{"name": "string", "port": 1000}],
"retriable_http_codes": [401],
},
"postgresql": {
"listen": "127.0.0.2,::1:543",