I accidentally deleted RBAC from EKS lost access to EKS Cluster

0

I accidentally deleted RBAC because I was initially trying to solve a completely different issue related to kube-apiserver-kubelet-client below after upgrading EKS to version 1.25

(user=kube-apiserver-kubelet-client, verb=get, resource=nodes, subresource=proxy)

Now I completely lost access to EKS Cluster. I don't know how to get it back.

For example running this command will give the error below.

kubectl auth can-i list secrets --namespace bachelierdev

no - RBAC: clusterrole.rbac.authorization.k8s.io "kube-developer-cr" not found

I'm not sure how to apply rbac (ClusterRole and ClusterRoleBinding) without access to EKS

Here is a screenshot when I'm trying to apply RBAC Enter image description here

1 Antwort
0

Ok I managed to resolved the issue using an Admin Account and then re-applying the RBAC

beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen