include patch permission for kubelets

pull/8/head
Minhan Xia 2018-04-09 17:36:25 -07:00
parent 212a16eccc
commit 9fe2c53624
2 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,7 @@ func NodeRules() []rbacv1.PolicyRule {
rbacv1helpers.NewRule("create", "delete").Groups(legacyGroup).Resources("pods").RuleOrDie(),
// Needed for the node to report status of pods it is running.
// Use the NodeRestriction admission plugin to limit a node to updating status of pods bound to itself.
rbacv1helpers.NewRule("update").Groups(legacyGroup).Resources("pods/status").RuleOrDie(),
rbacv1helpers.NewRule("update", "patch").Groups(legacyGroup).Resources("pods/status").RuleOrDie(),
// Needed for the node to create pod evictions.
// Use the NodeRestriction admission plugin to limit a node to creating evictions for pods bound to itself.
rbacv1helpers.NewRule("create").Groups(legacyGroup).Resources("pods/eviction").RuleOrDie(),

View File

@ -1098,6 +1098,7 @@ items:
resources:
- pods/status
verbs:
- patch
- update
- apiGroups:
- ""