Skip to content

Update ClusterRole to include 'get' for pods #391

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 26, 2021
Merged

Conversation

imuqtadir
Copy link
Contributor

Issue #, if available: #355

Description of changes: Add permissions for 'get' to pod resources. This was causing eviction to fail internally while seeming to a successful eviction and mask all errors. After overriding the kubectl lib and adding logs (unfortunately, missing within the package), I found the error to be:

"spark-pi-driver" is forbidden: User "system:serviceaccount:kube-system:aws-node-termination-handler" cannot get resource "pods" in API group "" in the namespace "default"

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@imuqtadir imuqtadir requested a review from bwagner5 March 26, 2021 16:54
@imuqtadir imuqtadir self-assigned this Mar 26, 2021
Copy link
Contributor

@bwagner5 bwagner5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on finding this!! LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Queue processor completing ASG lifecycle hook before pods finished terminating
2 participants