apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: devops-guru-monitoring rules: - apiGroups: - "" resources: - nodes - namespaces - pods - events - pods/log verbs: - get - list - apiGroups: - apps resources: - deployments - daemonsets - statefulsets - replicasets verbs: - get - list - apiGroups: - batch resources: - jobs verbs: - get - list - apiGroups: - metrics.k8s.io resources: - pods - nodes verbs: - get - list --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: devops-guru-monitoring-binding roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: devops-guru-monitoring subjects: - apiGroup: rbac.authorization.k8s.io kind: Group name: devops-guru