Skip to content

Commit

Permalink
clusterapi: Add 'watch' verb to scale-from-zero example
Browse files Browse the repository at this point in the history
If the 'get' and 'list' verbs are present, but the 'watch' verb is
absent, the autoscaler reports an error. For example:

cluster-autoscaler-b8949d8b9-76vcd E1006 22:11:43.056176       1
reflector.go:148]
k8s.io/client-go/dynamic/dynamicinformer/informer.go:108: Failed to
watch infrastructure.cluster.x-k8s.io/v1beta2,
Resource=vcdmachinetemplates: unknown
  • Loading branch information
dlipovetsky committed Oct 9, 2023
1 parent bafcc0d commit 60fcea2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cluster-autoscaler/cloudprovider/clusterapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ 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.
need permission to `get`, `list`, and `watch` 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:
Expand All @@ -254,6 +254,7 @@ rules:
verbs:
- get
- list
- watch
```

#### Pre-defined labels and taints on nodes scaled from zero
Expand Down

0 comments on commit 60fcea2

Please sign in to comment.