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: "example-role", Namespace: "kube-system"
from server for: "F:/downloads/edit-config.yaml": roles.rbac.authorization.k8s.io "example-role" is forbidden: User "system:serviceaccount:kube-system:aws-node" cannot get resource "roles" in API group "rbac.authorization.k8s.io" in the namespace "kube-system"
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
namespace: kube-system
name: example-role
rules:
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "watch", "list"]
$ 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"
Попробовал и этот метод. Не получилось ассоциировать роль.