apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: kubelet-rubber-stamp
rules:
- apiGroups:
  - certificates.k8s.io
  resources:
  - signers
  # legacy-unknown: support before kubernetes-1.18.0
  resourceNames:
  - "kubernetes.io/legacy-unknown"
  - "kubernetes.io/kubelet-serving"
  verbs:
  - approve
- apiGroups:
  - certificates.k8s.io
  resources:
  - certificatesigningrequests
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - certificates.k8s.io
  resources:
  - certificatesigningrequests/approval
  verbs:
  - create
  - update
- apiGroups:
  - authorization.k8s.io
  resources:
  - subjectaccessreviews
  verbs:
  - create
