daemonset dnspolicy should be explicitly set to ClusterFirstWithHostNet
forgems opened this issue · 0 comments
forgems commented
When trying to scrape prometheus metrics from local services agent can't resolve local kubernetes service names with given url. That's because daemonset is using hostNetwork and has default dnfpolicy set to ClusterFirst. According to kubernetes documentation it should be set to ClusterFirstWithHostNet