Uses "ClusterFirstWithHostNet" DNS policy when hostNetwork
is set to true
#690
Labels
area:collector
Issues for deploying collector
hostNetwork
is set to true
#690
Per the current operator, when trying to deploy otel-collector as agent (using daemonset), setting to
hostNetwork
is required for pods running on same host to reach the agent, but then communication to otel-collector deployed as gateway inside the cluster fails because of DNS error. Upon investigation it turns out pods usinghostNetwork
should also setdnsPolicy
toClusterFirstWithHostNet
. https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policyCan we make the operator aware of this logic?
My current OpenTelemetryCollector manifest:
Daemonset that was actually created by the operator:
The text was updated successfully, but these errors were encountered: