Skip to content

Commit

Permalink
[Docs] Openshift note about running Agent with elevated privileges (D…
Browse files Browse the repository at this point in the history
…ataDog#5212)

* [Docs] Openshift note about running Agent with elevated privileges for Docker metrics

* fixing indent

* wording update

Co-authored-by: Pierre Guceski <[email protected]>
  • Loading branch information
cswatt and Pierre Guceski authored Feb 21, 2020
1 parent ac1e096 commit 9a31fd5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions openshift/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ If SELinux is in enforcing mode, it is recommended to grant [the `spc_t` type][7

> :warning: **OpenShift 4.0+**: If you used the OpenShift installer on a supported cloud provider, you will need to modify the provided SCC with `allowHostNetwork: true` to get host tags/aliases as access to metadata servers from PODs network is otherwise restricited.

**Note**: The Docker socket is owned by the root group, so you may need to elevate the Agent's privileges to pull in Docker metrics. To run the Agent process as a root user, you can configure your SCC with the following:

```yaml
runAsUser:
type: RunAsAny
```

### Validation

See [kube_apiserver_metrics][1]
Expand Down

0 comments on commit 9a31fd5

Please sign in to comment.