Skip to content

Commit

Permalink
fix(logagent): correct dns policy for logagent daemonset (#2256)
Browse files Browse the repository at this point in the history
Co-authored-by: talonzzhang <talonzzhang@tencent.com>
  • Loading branch information
zhangzhangzf and talonzzhang committed Mar 31, 2023
1 parent 10058c3 commit 8147a11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/logagent/controller/logagent/logagent_controller.go
Expand Up @@ -597,6 +597,7 @@ func (c *Controller) genDaemonSet(version string) *appsv1.DaemonSet {
PriorityClassName: "system-cluster-critical",
ServiceAccountName: svcAccountName,
HostNetwork: true,
DNSPolicy: corev1.DNSClusterFirstWithHostNet,
Tolerations: []corev1.Toleration{
{Key: "node-role.kubernetes.io/master", Effect: corev1.TaintEffectNoSchedule},
},
Expand Down

0 comments on commit 8147a11

Please sign in to comment.