diff --git a/custom-metrics-stackdriver-adapter/adapter-beta.yaml b/custom-metrics-stackdriver-adapter/adapter-beta.yaml index e251a1774..f3d67ec7d 100644 --- a/custom-metrics-stackdriver-adapter/adapter-beta.yaml +++ b/custom-metrics-stackdriver-adapter/adapter-beta.yaml @@ -37,28 +37,13 @@ subjects: namespace: custom-metrics --- apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRole -metadata: - name: custom-metrics-resource-reader -rules: -- apiGroups: - - "" - resources: - - namespaces - - pods - - services - verbs: - - get - - list ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding metadata: name: custom-metrics-resource-reader roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole - name: custom-metrics-resource-reader + name: view subjects: - kind: ServiceAccount name: custom-metrics-stackdriver-adapter