apiVersion: v1
kind: ServiceAccount
metadata:
  name: example-webhook
  namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: example-webhook
rules:
- apiGroups: [""]
  resources: ["pods"]
  verbs: ["get", "watch", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: example-webhook
subjects:
- kind: ServiceAccount
  name: example-webhook
  namespace: default
roleRef:
  kind: ClusterRole
  name: example-webhook
  apiGroup: rbac.authorization.k8s.io