forked from frankisinfotech/Datadog-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rbac.yaml
74 lines (74 loc) · 1.77 KB
/
rbac.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
# This file has been generated by `helm template datadog-agent datadog/datadog` from datadog/templates/rbac.yaml. Please re-run `generate.sh` rather than modifying this file manually.
apiVersion: v1
kind: ServiceAccount
metadata:
name: datadog
namespace: default
labels: {}
---
# This file has been generated by `helm template datadog-agent datadog/datadog` from datadog/templates/rbac.yaml. Please re-run `generate.sh` rather than modifying this file manually.
apiVersion: "rbac.authorization.k8s.io/v1"
kind: ClusterRole
metadata:
name: datadog
labels: {}
rules:
- nonResourceURLs:
- "/metrics"
verbs:
- get
- apiGroups: # Kubelet connectivity
- ""
resources:
- nodes/metrics
- nodes/spec
- nodes/proxy
- nodes/stats
verbs:
- get
- apiGroups: # leader election check
- ""
resources:
- endpoints
verbs:
- get
- apiGroups:
- policy
resources:
- podsecuritypolicies
verbs:
- use
resourceNames:
- datadog
- apiGroups:
- "security.openshift.io"
resources:
- securitycontextconstraints
verbs:
- use
resourceNames:
- datadog
- hostaccess
- privileged
- apiGroups: # leader election check
- "coordination.k8s.io"
resources:
- leases
verbs:
- get
---
# This file has been generated by `helm template datadog-agent datadog/datadog` from datadog/templates/rbac.yaml. Please re-run `generate.sh` rather than modifying this file manually.
apiVersion: "rbac.authorization.k8s.io/v1"
kind: ClusterRoleBinding
metadata:
name: datadog
labels: {}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: datadog
subjects:
- kind: ServiceAccount
name: datadog
namespace: default