Open pebrc opened 3 years ago
I'm wondering if we could add an host alias to the podTemplate
to force the telemetry server to be resolved as localhost :
hostAliases:
- ip: "127.0.0.1"
hostnames:
- "telemetry.elastic.co"
Another option worth investigating is to try enabling sending telemetry data to staging cluster for E2E tests: https://github.com/elastic/kibana/blob/master/src/plugins/usage_collection/README.md#testing.
We don't want to report telemetry data out of e2e test runs. Kibana has different settings depending on its version to achieve that:
xpack.xpack_main.telemetry.enabled
telemetry.enabled
When set to
false
Kibana stops reporting telemetry data and on newer version also stops serving the internaltelemetry/v2/clusters/_stats
route (tbd since which version)The problem with disabling telemetry on older versions is that Kibana makes an optimise run which which leads to OOM as we don't run Kibana with enough resources to successfully complete the run.
A few options come to mind:
optimize.enabled=false
(might hide real world resource starvation problems, but arguably e2e test are not good environment to verify default memory settings )NetworkPolicy
preventing egress from the Kibana pod (only recent versions of Kibana with make requests from the server anyway, tbd since which version)