Skip to content

Commit

Permalink
update README with information about rbac changes
Browse files Browse the repository at this point in the history
this adds more information about the rbac changes necessary for the
scale from zero support to work.
  • Loading branch information
elmiko committed Apr 29, 2022
1 parent 6b66b58 commit 366700d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions cluster-autoscaler/cloudprovider/clusterapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,29 @@ metadata:
This value is inspired by the Kubernetes best practices
[Considerations for large clusters](https://kubernetes.io/docs/setup/best-practices/cluster-large/).

#### RBAC changes for scaling from zero

If you are using the opt-in support for scaling from zero as defined by the
Cluster API infrastructure provider, you will need to add the infrastructure
machine template types to your role permissions for the service account
associated with the cluster autoscaler deployment. The service account will
need permission to `get` and `list` the infrastructure machine templates for
your infrastructure provider.

For example, when using the [Kubemark provider](https://github.com/kubernetes-sigs/cluster-api-provider-kubemark)
you will need to set the following permissions:

```yaml
rules:
- apiGroups:
- infrastructure.cluster.x-k8s.io
resources:
- kubemarkmachinetemplates
verbs:
- get
- list
```

## Specifying a Custom Resource Group

By default all Kubernetes resources consumed by the Cluster API provider will
Expand Down

0 comments on commit 366700d

Please sign in to comment.