Add documentation for KUBERNETES_SERVICE_HOST in Agent (#3747)

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
jcgl17 2024-06-13 01:10:05 -05:00 committed by GitHub
parent 1228dd9dd6
commit 78ca71235d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -228,6 +228,12 @@ workspace:
See [this issue](https://github.com/woodpecker-ci/woodpecker/issues/2510) for more details.
### `KUBERNETES_SERVICE_HOST` environment variable
Like the below env vars used for configuration, this can be set in the environment fonfiguration of the agent. It configures the address of the Kubernetes API server to connect to.
If running the agent within Kubernetes, this will already be set and you don't have to add it manually.
## Configuration
These env vars can be set in the `env:` sections of the agent.