Skip to content

Commit 5ec21a1

Browse files
authored
Update FAQ.md to add steps for self-hosted provreq (#7092)
* Update FAQ.md to add steps for self-hosted provreq Adding more observed requirements to use the ProvisioningRequest feature. * fix typo in provreq flag * Add clusterrolebinding
1 parent a138805 commit 5ec21a1

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

cluster-autoscaler/FAQ.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,40 @@ Provisioning Request (abbr. ProvReq) is a new namespaced Custom Resource that ai
569569
1. **Cluster Autoscaler Version**: Ensure you are using Cluster Autoscaler version 1.30.1 or later.
570570

571571
2. **Feature Flag**: Enable ProvisioningRequest support by setting the following flag in your Cluster Autoscaler configuration:
572-
--enable-provisioning-reques=true.
572+
`--enable-provisioning-requests=true`.
573+
574+
3. **Content Type**: This feature requires that the [API content type flag](https://github.com/kubernetes/autoscaler/blob/522c6fcc06c8cf663175ba03549773cc66a02837/cluster-autoscaler/main.go#L114) is set to application/json: `--kube-api-content-type application/json`.
575+
576+
4. **RBAC permissions**: Ensure your cluster-autoscaler pod has the necessary permissions to interact with ProvisioningRequests and PodTemplates:
577+
```
578+
apiVersion: rbac.authorization.k8s.io/v1
579+
kind: ClusterRole
580+
metadata:
581+
name: cluster-autoscaler-provisioning
582+
rules:
583+
- apiGroups:
584+
- "autoscaling.x-k8s.io"
585+
resources:
586+
- provisioningrequests
587+
- provisioningrequests/status
588+
verbs: ["watch", "list", "get", "create", "update", "patch", "delete"]
589+
- apiGroups: [""]
590+
resources: ["podtemplates"]
591+
verbs: ["watch", "list", "get"]
592+
---
593+
apiVersion: rbac.authorization.k8s.io/v1
594+
kind: ClusterRoleBinding
595+
metadata:
596+
name: cluster-autoscaler-provisioning-binding
597+
roleRef:
598+
apiGroup: rbac.authorization.k8s.io
599+
kind: ClusterRole
600+
name: cluster-autoscaler-provisioning
601+
subjects:
602+
- kind: ServiceAccount
603+
name: cluster-autoscaler
604+
namespace: kube-system
605+
```
573606

574607
#### Supported ProvisioningClasses
575608

0 commit comments

Comments
 (0)