Answer the question
In order to leave comments, you need to log in
How to get back access to kubectl lost due to incorrect aws configmap?
Background of the problem: in the AWS console, I saw that for some reason the nodes of our cluster were no longer displayed under my admin (not root). According to the help article , it was necessary to edit the configmap.
I have edited the configmap like this:
apiVersion: v1
data:
mapRoles: <default options>
mapUsers: |
- userarn: arn:aws:iam::<root id>:root
username: #здесь оставил значение пустым
groups:
- system:bootstrappers
- system:nodes
$ kubectl --token=<...> edit configmap aws-auth -n kube-system
Error from server (Forbidden): configmaps "aws-auth" is forbidden: User "system:serviceaccount:kube-system:aws-node" cannot get resource "configmaps" in API group "" in the namespace "kube-system"
Answer the question
In order to leave comments, you need to log in
The account under which the cluster was originally created still has access to its management.
even if i'm root
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question