Skip to content

Commit

Permalink
NETOBSERV-305: deploy eBPF agent in master node (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Macias authored May 30, 2022
1 parent 64b0d2e commit 23c7912
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/ebpf/agent_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ func (c *AgentController) desired(coll *flowsv1alpha1.FlowCollector) *v1.DaemonS
Labels: map[string]string{"app": constants.EBPFAgentName},
},
Spec: corev1.PodSpec{
// Allows deploying an instance in the master node
Tolerations: []corev1.Toleration{{Operator: corev1.TolerationOpExists}},
ServiceAccountName: constants.EBPFServiceAccount,
HostNetwork: true,
DNSPolicy: corev1.DNSClusterFirstWithHostNet,
Expand Down

0 comments on commit 23c7912

Please sign in to comment.