Open
Description
openedon Jul 17, 2024
This is the META issue that will summarise all the needed sub issues that are needed in order to be able to disable the /api/v1/namespaces/kube-system/configmaps/kubeadm-config API calls through configuration.
The relevant enhancement was raised here: https://github.com/elastic/enhancements/issues/21172
See this issue for more details
The enhancement finally needs to be available in the elastic agent when users install the Kubernetes Integration. Additional we note that the kubeadm config calls are being made both as part of log collection process start and as metrics collection starts.
So in more details the task list is:
Tasks
- [Metricbeat Enhancememt]: Issue to disable the kube-adm calls in metricbeat. [Kubernetes - Metricbeat] Providing config option to disable Kubeadm config api requests #40086
- [Filebeat autodiscover Enhancememt]: Issue to disable the kube-adm calls when autodiscover is configured in filebeat. This specific issue needs to be implemented on kubernetes provider. Respectively the pod, node and service have eg PodMetadataGenerator that finally calls the getClusterInfoFromKubeadmConfigMap that is responsible to make those calls Disable kubeadm for filebeat (both filbeat.input and filbeat.autodiscover) #40301
- [Filebeat Input Enhancememt]: Issue to disable the kube-adm calls when filestream input is configured. In this case check if relevant api calls are made: Issue was covered in Disable kubeadm for filebeat (both filbeat.input and filbeat.autodiscover) #40301
- [Elastic Agent Enhcanement]: Issue that is needed to make available in the Elastic Agent policy of kubernetes integration all the config options introduced from previous issues, from filebeat and metricbeat. We will need to make checks with metrics and logs ingestion enabled, to check whether the API calls are minimised: [Kubernetes] Include kubeadm parameter integrations#11187
NOTES:
- In elastic agent the add_kubernetes_metadata processor starts by default and is not configurable
- In case Fleet Elastic Agent needs to configure the kubernetes provider, we will use the following installation method: https://www.elastic.co/guide/en/fleet/current/advanced-kubernetes-managed-by-fleet.html#_step_2_create_a_new_configmap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment