Skip to content

Commit

Permalink
Set DNSPolicy correctly when host network is used in daemonset (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
rgeyer authored Jul 12, 2021
1 parent 9a11442 commit d0cab5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion production/tanka/grafana-agent/v1/lib/integrations.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ local container = k.core.v1.container;
k.util.hostVolumeMount('root', '/', '/host/root', readOnly=true) +

controller.mixin.spec.template.spec.withHostPID(true) +
controller.mixin.spec.template.spec.withHostNetwork(true),
controller.mixin.spec.template.spec.withHostNetwork(true) +
controller.mixin.spec.template.spec.withDnsPolicy('ClusterFirstWithHostNet'),
},
}

0 comments on commit d0cab5e

Please sign in to comment.