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:
parent
1b7f445ee5
commit
aabec054a7
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue