Metricbeat not reporting on port 10255 anymore using latest kubernetes, how to use the secured port 10250?

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