# This fails because the ClusterRole allows pods/exec. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: test rules: - apiGroups: [ "" ] resources: [ "pods/exec" ] verbs: [ create ] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: test roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: test subjects: - apiGroup: rbac.authorization.k8s.io kind: User name: testuser