Skip to content
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

Cluster Auto-scaler forbidden error #17

Open
chailatent opened this issue May 31, 2023 · 0 comments
Open

Cluster Auto-scaler forbidden error #17

chailatent opened this issue May 31, 2023 · 0 comments

Comments

@chailatent
Copy link

I've an existing EKS cluster. I want to attach auto-scaler to the EKS cluster.

When I run the auto-scaler bash script I get the following error during

kubectl apply -f cluster-auto-scaler.yaml

Name: "cluster-autoscaler", Namespace: "kube-system"
from server for: "./cluster-autoscaler.yaml": serviceaccounts "cluster-autoscaler" is forbidden: User "user-role" cannot get resource "serviceaccounts" in API group "" in the namespace "kube-system"
Error from server (Forbidden): error when retrieving current configuration of:
Resource: "rbac.authorization.k8s.io/v1, Resource=clusterroles", GroupVersionKind: "rbac.authorization.k8s.io/v1, Kind=ClusterRole"
Name: "cluster-autoscaler", Namespace: ""
from server for: "./cluster-autoscaler.yaml": clusterroles.rbac.authorization.k8s.io "cluster-autoscaler" is forbidden: User "user-role" cannot get resource "clusterroles" in API group "rbac.authorization.k8s.io" at the cluster scope
Error from server (Forbidden): error when retrieving current configuration of:
Resource: "rbac.authorization.k8s.io/v1, Resource=roles", GroupVersionKind: "rbac.authorization.k8s.io/v1, Kind=Role"
Name: "cluster-autoscaler", Namespace: "kube-system"
from server for: "./cluster-autoscaler.yaml": roles.rbac.authorization.k8s.io "cluster-autoscaler" is forbidden: User "user-role" cannot get resource "roles" in API group "rbac.authorization.k8s.io" in the namespace "kube-system"
Error from server (Forbidden): error when retrieving current configuration of:
Resource: "rbac.authorization.k8s.io/v1, Resource=clusterrolebindings", GroupVersionKind: "rbac.authorization.k8s.io/v1, Kind=ClusterRoleBinding"
Name: "cluster-autoscaler", Namespace: ""
from server for: "./cluster-autoscaler.yaml": clusterrolebindings.rbac.authorization.k8s.io "cluster-autoscaler" is forbidden: User "user-role" cannot get resource "clusterrolebindings" in API group "rbac.authorization.k8s.io" at the cluster scope
Error from server (Forbidden): error when retrieving current configuration of:
Resource: "rbac.authorization.k8s.io/v1, Resource=rolebindings", GroupVersionKind: "rbac.authorization.k8s.io/v1, Kind=RoleBinding"
Name: "cluster-autoscaler", Namespace: "kube-system"
from server for: "./cluster-autoscaler.yaml": rolebindings.rbac.authorization.k8s.io "cluster-autoscaler" is forbidden: User "user-role" cannot get resource "rolebindings" in API group "rbac.authorization.k8s.io" in the namespace "kube-system"
Error from server (Forbidden): error when retrieving current configuration of:
Resource: "apps/v1, Resource=deployments", GroupVersionKind: "apps/v1, Kind=Deployment"
Name: "cluster-autoscaler", Namespace: "kube-system"
from server for: "./cluster-autoscaler.yaml": deployments.apps "cluster-autoscaler" is forbidden: User "user-role" cannot get resource "deployments" in API group "apps" in the namespace "kube-system"

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

No branches or pull requests

1 participant