Set $HOSTIP in default URL (#8721)

Telegraf daemonset pod cannot contact kube-apiserver via localhost.
Should be `$HOSTIP`, and the default port is 6443.

Co-authored-by: Paul Choi <pchoi@apple.com>
This commit is contained in:
Paul Choi 2021-03-05 09:30:45 -08:00 committed by GitHub
parent 1b7f445ee5
commit aabec054a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ avoid cardinality issues:
```toml ```toml
[[inputs.kube_inventory]] [[inputs.kube_inventory]]
## URL for the Kubernetes API ## URL for the Kubernetes API
url = "https://127.0.0.1" url = "https://$HOSTIP:6443"
## Namespace to use. Set to "" to use all namespaces. ## Namespace to use. Set to "" to use all namespaces.
# namespace = "default" # namespace = "default"