Problem with Amazon EBS CSI Driver Node Driver Registrar after moving to EKS 1.25

0

I installed aws-ebs-csi-driver

eksctl get addon --name aws-ebs-csi-driver --cluster <cluster-name>
NAME			VERSION			STATUS	ISSUES	IAMROLE							UPDATE AVAILABLE
aws-ebs-csi-driver	v1.16.0-eksbuild.1	ACTIVE	0	arn:aws:iam::<numbers>:role/AmazonEKS_EBS_CSI_DriverRole

When I look at the objects it created, the container node-driver-registrar under the pod ebs-csi-node keeps on crashing.

I'am unable to get the logs because I was having another issue below when running kubectl logs command.

Internal error occurred: Authorization error (user=kube-apiserver-kubelet-client, verb=get, resource=nodes, subresource=proxy)

Enter image description here

Enter image description here

asked a year ago887 views
1 Answer
0

It seems to be that the permissions are setup incorrectly. Could you try adding this ClusterRoleBinding Resource and test it once.

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: kubelet-api-admin
subjects:
- kind: User
  name: kubelet-api
  apiGroup: rbac.authorization.k8s.io
roleRef:
  kind: ClusterRole
  name: system:kubelet-api-admin
  apiGroup: rbac.authorization.k8s.io
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions