Skip to content

Commit

Permalink
Set hostPID=true for managed agent in k8s (#528)
Browse files Browse the repository at this point in the history
* Set hostPID=true for managed agent in k8s

* Add comment on hostPID.
  • Loading branch information
daniel-almeida authored Jun 29, 2022
1 parent eb6fa02 commit 5f60fd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/kubernetes/elastic-agent-managed-kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ spec:
effect: NoSchedule
serviceAccountName: elastic-agent
hostNetwork: true
# Sharing the host process ID namespace gives visibility of all processes running on the same host.
# This enables the Elastic Security integration to observe all process exec events on the host.
hostPID: true
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: elastic-agent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ spec:
effect: NoSchedule
serviceAccountName: elastic-agent
hostNetwork: true
# Sharing the host process ID namespace gives visibility of all processes running on the same host.
# This enables the Elastic Security integration to observe all process exec events on the host.
hostPID: true
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: elastic-agent
Expand Down

0 comments on commit 5f60fd0

Please sign in to comment.