Quiz 7.1


1. Create Namespace quiz-monitoring for monitoring components.

2. Create a file named cr-quiz.yaml and define the ClusterRole for Prometheus monitoring components based on the provided template:

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: quiz-prometheus
rules:
- apiGroups: [""]
  resources:
  - nodes
  - nodes/proxy
  - services
  - endpoints
  - pods
  verbs: ["get", "list", "watch"]
# Add additional rules as needed

3. Apply the ClusterRole using the provided file.

4. Create a ClusterRoleBinding named prometheus-binding to bind the quiz-prometheus ClusterRole to the default ServiceAccount within the quiz-monitoring namespace.