{{with .Values -}} --- ### ### Prometheus RBAC ### --- kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: linkerd-{{.Namespace}}-prometheus rules: - apiGroups: [""] resources: ["pods"] verbs: ["get", "list", "watch"] --- kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: linkerd-{{.Namespace}}-prometheus roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: linkerd-{{.Namespace}}-prometheus subjects: - kind: ServiceAccount name: linkerd-prometheus namespace: {{.Namespace}} --- kind: ServiceAccount apiVersion: v1 metadata: name: linkerd-prometheus namespace: {{.Namespace}} {{- end}}