Skip to content

Commit

Permalink
Set $HOSTIP in default URL (influxdata#8721)
Browse files Browse the repository at this point in the history
Telegraf daemonset pod cannot contact kube-apiserver via localhost.
Should be `$HOSTIP`, and the default port is 6443.

Co-authored-by: Paul Choi <[email protected]>
  • Loading branch information
paulchoi and Paul Choi authored Mar 5, 2021
1 parent 1b7f445 commit aabec05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/kube_inventory/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ avoid cardinality issues:
```toml
[[inputs.kube_inventory]]
## 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 = "default"
Expand Down

0 comments on commit aabec05

Please sign in to comment.