-
Notifications
You must be signed in to change notification settings - Fork 112
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
no subjectaccessreviews access #271
Comments
Could you add some more logs to show where the |
There should be a system ClusterRole named As the current manifest has ClusterRoleBinding for |
@ymmt2005 interesting, maybe @victor23d can check that. In our custom AWS cluster (non eks) we have the clusterrole system:auth-delegator |
I got the answer:
from a 1.19.7 cluster |
It works on GKE cluster but doesn't work on AKS cluster.
Error log on AKS cluster:
subjectaccessreviews.authorization.k8s.io is forbidden: User \"system:serviceaccount:custom-metrics:custom-metrics-apiserver\" cannot create resource \"subjectaccessreviews\" in API group \"authorization.k8s.io\" at the cluster scope") has prevented the request from succeeding (get pods.custom.metrics.k8s.io *)
It's caused by lacking subjectaccessreviews access.
I could make a pull request to fix it.
The text was updated successfully, but these errors were encountered: