summaryrefslogtreecommitdiffstats
path: root/src/monitor/deploy/role.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'src/monitor/deploy/role.yaml')
-rw-r--r--src/monitor/deploy/role.yaml60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/monitor/deploy/role.yaml b/src/monitor/deploy/role.yaml
new file mode 100644
index 00000000..4d0fd1b6
--- /dev/null
+++ b/src/monitor/deploy/role.yaml
@@ -0,0 +1,60 @@
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+ creationTimestamp: null
+ name: monitor
+rules:
+- apiGroups:
+ - ""
+ resources:
+ - pods
+ - services
+ - endpoints
+ - persistentvolumeclaims
+ - events
+ - configmaps
+ - secrets
+ verbs:
+ - '*'
+- apiGroups:
+ - apps
+ resources:
+ - deployments
+ - daemonsets
+ - replicasets
+ - statefulsets
+ verbs:
+ - '*'
+- apiGroups:
+ - monitoring.coreos.com
+ resources:
+ - servicemonitors
+ verbs:
+ - get
+ - create
+- apiGroups:
+ - apps
+ resourceNames:
+ - monitor
+ resources:
+ - deployments/finalizers
+ verbs:
+ - update
+- apiGroups:
+ - ""
+ resources:
+ - pods
+ verbs:
+ - get
+- apiGroups:
+ - apps
+ resources:
+ - replicasets
+ verbs:
+ - get
+- apiGroups:
+ - k8splugin.io
+ resources:
+ - '*'
+ verbs:
+ - '*'