-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Metricbeat] Added daemonsetHostNetworking switch #439
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
Author of the following commits did not sign a Contributor Agreement: Please, read and sign the above mentioned agreement if you want to contribute to this project |
Author of the following commits did not sign a Contributor Agreement: Please, read and sign the above mentioned agreement if you want to contribute to this project |
I closed that PR because I found a better way of doing it. In my metricbeat config I did
and
This config is best when A. the kubelet node name is not routable from within a pod, B. your kubelet is serving https at port 10250. C. Your kubelet has its ip address listed as a "server alternate name" on its certificate Depending, you may want to use |
thanks @pbecotte , adding |
@pbecotte I'm trying your solution but I can't make it work due the following error:
Moreover, I think the Our solution: |
Awesome! It was using RKE that I built out that solution. Even better, the code is publicly available. https://gitlab.com/devblog/infrastructure/blob/master/modules/rancher/cluster/main.tf#L71 |
To further clarify, you are right, that IS the kube-api CA. RKE will use that CA to generate valid kubelet certificates if you set the |
${CHART}/tests/*.py
${CHART}/examples/*/test/goss.yaml
Since #315 has been closed here is a PR to add the
hostNetwork
setting to the daemonset pods.Why > some metrics use the pod's name instead of the host name when
hostNetwork
is not set. This is showing in kibana's Infrastructure panel.