opentelemetry-helm-charts icon indicating copy to clipboard operation
opentelemetry-helm-charts copied to clipboard

[opentelemetry-operator] Opentelemetry agent network is not well configured when mode is daemonSet

Open fabMrc opened this issue 2 years ago • 2 comments

HI

When using Operator and apply a Opentelemetry collector using mode=daemonSet, hostNetwork=true and dnsPolicy is ClusterFirst. It does not allow correct dns resolution for all service and pod inside the cluster. For example loki.svc.cluster.local can not be resolved because using this network configuration, it relies on the underlying resolv.conf host and it does not be able to resolve a internal cluster recordset dns. when using hostNetwork true the dnsPolicy must be ClusterFirstWhenHostNet. Currently it is the operator that control the network configuration and set any pod attributes according to mode property value

fabMrc avatar Nov 13 '23 10:11 fabMrc

Looks like the operator generates the daemonset manifest and it is not part of the chart itself. I see the operator does set the policy to ClusterFirstWithHostNet for hostNetwork = true when creating the daemonset manifest. I would suggest opening an issue in operator repo with your findings.

jinja2 avatar Nov 14 '23 17:11 jinja2

yes of course thank you

Follow up : https://github.com/open-telemetry/opentelemetry-operator/issues/2357

fabMrc avatar Nov 15 '23 09:11 fabMrc