aws-samples / aws-samples/aws-do-eks

Cluster Auto-scaler forbidden error

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
68
Forks
35
Avg merge
4h 23m
Merged PRs (30d)
40

Description

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"

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.