apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: pod-reader
  namespace: default
rules:
  - apiGroups: ["", "extensions", "apps"]
    resources: ["pods", "configmaps", "services", "endpoints", "secrets"]
    verbs: ["get", "watch", "list"]