Mount /etc/machine-id in elastic-agent-managed-kubernetes.yaml #512
Labels
8.5-candidate
Team:Elastic-Agent
Label for the Agent team
Team:Elastic-Agent-Control-Plane
Label for the Agent Control Plane team
Describe the enhancement:
Change the yaml for managed Agent in k8s so that it has a volume for
/etc/machine-id
that is mounted in the Agent's container.New volume mount for the elastic-agent container:
New volume:
Describe a specific use case for the enhancement or feature:
To determine
host ID
, Agent needs the content of/etc/machine-id
(see https://github.com/elastic/go-sysinfo/blob/main/providers/linux/machineid.go#L32).Currently, the file is present in the container, but empty, which results in Agent using the value
""
when determining the host ID, and sending an empty host ID to endpoint. That makes the policy status unhealthy because Endpoint requires a valid host ID.The text was updated successfully, but these errors were encountered: