VPA: Update vpa-rbac.yaml for allowing in place resize requests
Signed-off-by: Max Cao <macao@redhat.com>
This commit is contained in:
parent
d6376c48f6
commit
15883dce79
|
@ -124,6 +124,32 @@ rules:
|
|||
- create
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: system:vpa-updater-in-place
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- pods/resize
|
||||
- pods # required for patching vpaInPlaceUpdated annotations onto the pod
|
||||
verbs:
|
||||
- patch
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: system:vpa-updater-in-place-binding
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: system:vpa-updater-in-place
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: vpa-updater
|
||||
namespace: kube-system
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: system:metrics-reader
|
||||
|
|
Loading…
Reference in New Issue