Using metricbeat in a CRC Instalation of Openshift

Hi Im having problems with the instalation of metricbeat using the manifest in the documentation

https://raw.githubusercontent.com/elastic/beats/7.17/deploy/kubernetes/metricbeat-kubernetes.yaml

this path doesnt exist on the server:

  bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token

and also where I can obtain a cert to use in this line?

      ssl.certificate_authorities:
    - /path/to/kubelet-service-ca.crt

Hi @ElasticLiver

this path doesnt exist on the server:

 bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token

This file should be available inside the metricbeat container, together with /var/run/secrets/kubernetes.io/serviceaccount/ca.crt, more details on it - here.

and also where I can obtain a cert to use in this line?

     ssl.certificate_authorities:
   - /path/to/kubelet-service-ca.crt

it depends on your setup, did you check if you have a configmap in openshift-kube-apiserver namespace with ca-bundle.crt data as described here?

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.