diff --git a/argocd/prometheus/test/templates/cr.yaml b/argocd/prometheus/test/templates/cr.yaml new file mode 100644 index 0000000..9acadbb --- /dev/null +++ b/argocd/prometheus/test/templates/cr.yaml @@ -0,0 +1,12 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: prometheus-metrics-reading +rules: + - nonResourceURLs: + - "/metrics" + - "/metrics/cadvisor" + - "/metrics/resource" + - "/metrics/probes" + verbs: + - get \ No newline at end of file diff --git a/argocd/prometheus/test/templates/crb.yaml b/argocd/prometheus/test/templates/crb.yaml new file mode 100644 index 0000000..ca8c426 --- /dev/null +++ b/argocd/prometheus/test/templates/crb.yaml @@ -0,0 +1,12 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: prometheus-metrics-reading +subjects: + - kind: ServiceAccount + apiGroup: rbac.authorization.k8s.io + name: prometheus-server +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: prometheus-metrics-reading