apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: backstage-read-only rules: - apiGroups: [""] resources: - configmaps - limitranges - pods - pods/log - resourcequotas - services verbs: [get, list, watch] - apiGroups: [apps] resources: - daemonsets - deployments - replicasets - statefulsets verbs: [get, list, watch] - apiGroups: [autoscaling] resources: - horizontalpodautoscalers verbs: [get, list, watch] - apiGroups: [batch] resources: - cronjobs - jobs verbs: [get, list, watch] - apiGroups: [networking.k8s.io] resources: - ingresses verbs: [get, list, watch] - apiGroups: [metrics.k8s.io] resources: - pods verbs: [get, list] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: backstage-read-only roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: backstage-read-only subjects: - kind: ServiceAccount name: backstage namespace: backstage