Skip to content

Commit

Permalink
Fix OpenShift monitoring sample (#4344) (#4345)
Browse files Browse the repository at this point in the history
  • Loading branch information
barkbay authored Mar 15, 2021
1 parent 2f1f822 commit 9133a0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/recipes/beats/openshift_monitoring.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ spec:
- /etc/beat.yml
- -system.hostfs=/hostfs
name: metricbeat
securityContext:
runAsUser: 0
privileged: true # This is required to access kubelet API
volumeMounts:
- mountPath: /hostfs/sys/fs/cgroup
name: cgroup
Expand All @@ -129,9 +132,6 @@ spec:
memory: 2Gi
dnsPolicy: ClusterFirstWithHostNet
hostNetwork: true # Allows to provide richer host metadata
securityContext:
runAsUser: 0
privileged: true # This is required to access kubelet API
terminationGracePeriodSeconds: 30
volumes:
- hostPath:
Expand Down

0 comments on commit 9133a0e

Please sign in to comment.