yeah.. thanks, I tried that too... that's what I have, but still no luck (get the same x509 error):
kubernetes:
enabled: true
config:
- module: kubernetes
metricsets: - node
- system
- pod
- container
- volume
period: 10s
hosts: ["https://${HOSTNAME}:10250"]
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
ssl.certificate_authorities: - /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
add_metadata: true
in_cluster: true