marcel-dempers f3c8f1fb5c demo
2021-04-10 15:17:10 +10:00

27 lines
567 B
YAML

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