Set env variable ELASTIC_NETINFO:false in Kibana (#166156)

## Summary

This PR add the environmental veriable ELASTIC_NETINFO in the managed
and standalone manifests of Elasitc agent.

The variable has been introduced here
https://github.com/elastic/elastic-agent/pull/3354

The reason for the introduction of the new variable
ELASTIC_NETINFO:false by default in the manifests, is related with the
work done https://github.com/elastic/integrations/issues/6674
This commit is contained in:
Andrew Gizas 2023-09-18 12:22:18 +03:00 committed by GitHub
parent 8dd82c0d65
commit dcd3a473e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,6 +68,10 @@ spec:
fieldPath: metadata.name
- name: STATE_PATH
value: "/etc/elastic-agent"
# The following ELASTIC_NETINFO:false variable will disable the netinfo.enabled option of add-host-metadata processor. This will remove fields host.ip and host.mac.
# For more info: https://www.elastic.co/guide/en/beats/metricbeat/current/add-host-metadata.html
- name: ELASTIC_NETINFO
value: "false"
securityContext:
runAsUser: 0
# The following capabilities are needed for 'Defend for containers' integration (cloud-defend)
@ -389,6 +393,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.name
# The following ELASTIC_NETINFO:false variable will disable the netinfo.enabled option of add-host-metadata processor. This will remove fields host.ip and host.mac.
# For more info: https://www.elastic.co/guide/en/beats/metricbeat/current/add-host-metadata.html
- name: ELASTIC_NETINFO
value: "false"
securityContext:
runAsUser: 0
# The following capabilities are needed for 'Defend for containers' integration (cloud-defend)