kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: mypodviewer
  namespace: coolapp
subjects:
- kind: ServiceAccount
  name: myappid
  namespace: coolapp
roleRef:
  kind: Role #this must be Role or ClusterRole
  name: podreader
  apiGroup: rbac.authorization.k8s.io
