For the complete documentation index, see llms.txt. This page is also available as Markdown.

Modify Harness Delegate's Kubernetes API client timeout

Modify the read and connection timeouts for Kubernetes API client within Harness Delegate.

Harness Delegate uses Kubernetes Java client to make programmatic API calls to the Kubernetes server. For example, CRUD API calls for Kubernetes objects like ConfigMaps, Secrets, and so on.

Configuration

The API client uses an OkHttp client whose default read timeout and connect timeout values are set to 120 and 60 seconds respectively.

These values can be configured using environment variables by modifying the delegate's container environment.

These values must be specified in seconds.

The environment variables for these timeouts are:

  • Read timeout: K8S_API_CLIENT_READ_TIMEOUT.

  • Connect timeout: K8S_API_CLIENT_CONNECT_TIMEOUT.

Last updated

Was this helpful?