Skip to content

Commit 7e31555

Browse files
authored
Add CSR RBAC to the example manifest (#797)
1 parent 8d1dbd1 commit 7e31555

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

examples/machine-controller.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,30 @@ rules:
456456
- "pods/eviction"
457457
verbs:
458458
- "create"
459+
# The following roles are required for NodeCSRApprover controller to be able
460+
# to reconcile CertificateSigningRequests for kubelet serving certificates.
461+
- apiGroups:
462+
- "certificates.k8s.io"
463+
resources:
464+
- "certificatesigningrequests"
465+
verbs:
466+
- "get"
467+
- "list"
468+
- "watch"
469+
- apiGroups:
470+
- "certificates.k8s.io"
471+
resources:
472+
- "certificatesigningrequests/approval"
473+
verbs:
474+
- "update"
475+
- apiGroups:
476+
- "certificates.k8s.io"
477+
resources:
478+
- "signers"
479+
resourceNames:
480+
- "kubernetes.io/kubelet-serving"
481+
verbs:
482+
- "approve"
459483
---
460484
apiVersion: rbac.authorization.k8s.io/v1beta1
461485
kind: ClusterRoleBinding

0 commit comments

Comments
 (0)