diff --git a/deploy/kubernetes/elastic-agent-managed-kubernetes.yaml b/deploy/kubernetes/elastic-agent-managed-kubernetes.yaml index 882e7b46e21..985cd3fe666 100644 --- a/deploy/kubernetes/elastic-agent-managed-kubernetes.yaml +++ b/deploy/kubernetes/elastic-agent-managed-kubernetes.yaml @@ -19,6 +19,7 @@ spec: effect: NoSchedule serviceAccountName: elastic-agent hostNetwork: true + hostPID: true dnsPolicy: ClusterFirstWithHostNet containers: - name: elastic-agent diff --git a/deploy/kubernetes/elastic-agent-managed/elastic-agent-managed-daemonset.yaml b/deploy/kubernetes/elastic-agent-managed/elastic-agent-managed-daemonset.yaml index 097d9786e03..7d1bd197698 100644 --- a/deploy/kubernetes/elastic-agent-managed/elastic-agent-managed-daemonset.yaml +++ b/deploy/kubernetes/elastic-agent-managed/elastic-agent-managed-daemonset.yaml @@ -19,6 +19,7 @@ spec: effect: NoSchedule serviceAccountName: elastic-agent hostNetwork: true + hostPID: true dnsPolicy: ClusterFirstWithHostNet containers: - name: elastic-agent