Closed anwareset closed 3 years ago
The workaround is set the service to disabled inside values.yaml
since I don't need service for telegraf.
service:
enabled: false
Or It should looks like this when we need to enable it.
service:
enabled: true
type: ClusterIP
metrics:
health:
enabled: true
Then the output of helm upgrade --install telegraf -f values.yaml influxdata/telegraf
commands will be like this
NAME: telegraf
LAST DEPLOYED: Fri Jun 11 23:08:08 2021
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
To open a shell session in the container running Telegraf run the following:
kubectl exec -i -t $(kubectl get pods -l app.kubernetes.io/name=telegraf -o jsonpath='{.items[0].metadata.name}') /bin/sh
To view the logs for a Telegraf pod, run the following:
kubectl logs -f $(kubectl get pods -l app.kubernetes.io/name=telegraf -o jsonpath='{ .items[0].metadata.name }')
took me an hour to find, why not in documentation or open ?
Here is my
values.yaml
And I just try to install with this command
Then the output will be like this
I try to get logs from the
telegraf
podThe output is like this
The
helm upgrade --install
command shows Error message, but the UI seems works fine.