gafaelfawr.constants.KUBERNETES_WATCH_TIMEOUT = 600

Timeout (in seconds) for the Kubernetes operator watch operation.

If this is not set, Kopf attempts to connect without a timeout. This sometimes triggers a bug in Kubernetes where the server stops responding without closing the connection (see nolar/kopf#585). Instead, set an explicit timeout.

This is the timeout sent to the Kubernetes server and is supposed to be handled on the server side. A client-side timeout will be set for one minute longer than this timeout in case the server doesn’t handle its timeout properly.