Skip to content

Commit 114091d

Browse files
committed
VPA: Update vpa-rbac.yaml for allowing in place resize requests
Signed-off-by: Max Cao <[email protected]>
1 parent e24b6dd commit 114091d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

vertical-pod-autoscaler/deploy/vpa-rbac.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,32 @@ rules:
121121
- create
122122
---
123123
apiVersion: rbac.authorization.k8s.io/v1
124+
kind: ClusterRole
125+
metadata:
126+
name: system:vpa-updater-in-place
127+
rules:
128+
- apiGroups:
129+
- ""
130+
resources:
131+
- pods/resize
132+
- pods
133+
verbs:
134+
- patch
135+
---
136+
apiVersion: rbac.authorization.k8s.io/v1
137+
kind: ClusterRoleBinding
138+
metadata:
139+
name: system:vpa-updater-in-place-binding
140+
roleRef:
141+
apiGroup: rbac.authorization.k8s.io
142+
kind: ClusterRole
143+
name: system:vpa-updater-in-place
144+
subjects:
145+
- kind: ServiceAccount
146+
name: vpa-updater
147+
namespace: kube-system
148+
---
149+
apiVersion: rbac.authorization.k8s.io/v1
124150
kind: ClusterRoleBinding
125151
metadata:
126152
name: system:metrics-reader

0 commit comments

Comments
 (0)