I have a problem deploying a Metricbeat in Kubernetes. I use the following documentation: https://www.elastic.co/guide/en/beats/metricbeat/current/running-on-kubernetes.html
But when I deploy a Metricbeat, my output configuration in the container looks like this:
output.elasticsearch: hosts: ['elasticsearch:9200'] username: elastic password: changeme
My configuration in the YAML file looks like this:
- name: ELASTICSEARCH_HOST value: 10.x.x.x - name: ELASTICSEARCH_PORT value: "9200" #- name: ELASTICSEARCH_USERNAME # value: elastic #- Name: ELASTICSEARCH_PASSWORD # value: changeme
I don't understand why the changes in the YAML file have no effect on the output.elasticsearch configuration.
Does anyone have an idea?