Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Cluster autoscaler clusterrole add jobs #10206

Merged
merged 3 commits into from Jan 17, 2019
Merged

Cluster autoscaler clusterrole add jobs #10206

merged 3 commits into from Jan 17, 2019

Conversation

plumdog
Copy link
Contributor

@plumdog plumdog commented Dec 21, 2018

@mgoodness

I got an error that looked like:

cluster.go:95] Detailed evaluation: node MyNode cannot be removed: job for my-namespace/my-job is not available: err: jobs.batch "my-job" is forbidden: User "system:serviceaccount:system:cluster-autoscaler-aws-cluster-autoscaler" cannot get jobs.batch in the namespace "my-namespace"

So the cluster autoscaler is trying to get jobs but the clusterrole won't let it. Adding the permission rule for batch.jobs made this error go away and the autoscaler worked again.

Have also added cronjobs to match with kubernetes/autoscaler#1189, though I have not found a canonical set of required permissions for the cluster-autoscaler.

@helm-bot helm-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 21, 2018
@helm-bot helm-bot added Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 21, 2018
@cpanato
Copy link
Member

cpanato commented Jan 11, 2019

/ok-to-test
/assign

@cpanato
Copy link
Member

cpanato commented Jan 11, 2019

@plumdog can you rebase ?

Signed-off-by: Andrew Plummer <plummer574@gmail.com>
Signed-off-by: Andrew Plummer <plummer574@gmail.com>
@helm-bot helm-bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). labels Jan 14, 2019
Signed-off-by: Andrew Plummer <plummer574@gmail.com>
@helm-bot helm-bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 14, 2019
@plumdog
Copy link
Contributor Author

plumdog commented Jan 14, 2019

@cpanato Rebased and version number re-bumped.

@cpanato
Copy link
Member

cpanato commented Jan 17, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 17, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cpanato, plumdog

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 17, 2019
@cpanato
Copy link
Member

cpanato commented Jan 17, 2019

thanks so much for your contribution @plumdog

@k8s-ci-robot k8s-ci-robot merged commit 20fdffe into helm:master Jan 17, 2019
@plumdog plumdog deleted the cluster_autoscaler_clusterrole_add_jobs branch January 18, 2019 09:08
wgiddens pushed a commit to wgiddens/charts that referenced this pull request Jan 18, 2019
* [cluster-autoscaler] Add batch.jobs permissions to clusterrole

Signed-off-by: Andrew Plummer <plummer574@gmail.com>

* [cluster-autoscaler] Cronjobs too

Signed-off-by: Andrew Plummer <plummer574@gmail.com>

* [cluster-autoscaler] Bump version number

Signed-off-by: Andrew Plummer <plummer574@gmail.com>
victorboissiere pushed a commit to victorboissiere/charts that referenced this pull request Jan 24, 2019
* [cluster-autoscaler] Add batch.jobs permissions to clusterrole

Signed-off-by: Andrew Plummer <plummer574@gmail.com>

* [cluster-autoscaler] Cronjobs too

Signed-off-by: Andrew Plummer <plummer574@gmail.com>

* [cluster-autoscaler] Bump version number

Signed-off-by: Andrew Plummer <plummer574@gmail.com>
Signed-off-by: Victor Boissiere <victor.boissiere@neo9.fr>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). lgtm Indicates that a PR is ready to be merged. ok-to-test size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants