Open kuisathaverat opened 2 years ago
It seems that this limitation was documented here: https://github.com/elastic/apm-mutating-webhook/blob/e75dbfe131f9abc7ca2f2a6a2db09c57299699f4/apm-agent-auto-attach/templates/webhook.yaml#L76-L86
We should update the docs to make this limitation public and obvious.
Could you open a docs PR for that?
Maybe we could change that to use objectSelector, matching on co.elastic.traces/agent
? i.e. exclude the webhook itself, without excluding everything in its namespace.
If you deploy the webhook and the Agents in the default namespace, the mutation does not happen, so the Agent is not configured to report APM. The same configuration on webhook and Agents works if the webhook is deployed in the namespace
elastic-apm
This is the webhook configuration used.