-
Notifications
You must be signed in to change notification settings - Fork 803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on ebs-csi-controller pod #1357
Comments
On fargate you need to specify the region manually, as there is no IMDS and k8s doesn't provide this info. If you installed with the helm chart you can do so by setting the helm parameter If you installed via another method you can do so by supplying the |
Out of curiousity, doesn't fargate nodes have topology labels? I see that the CSI driver tries to extract metadata from the providerID, but this one isn't guaranteed to include region or AZ (which is the case with fargate apparently). But topology flags should still be there? |
@olemarkus from my understanding a region is a hard requirement on the controller because the driver uses it for determining the AWS API endpoint to hit. |
Yeah. It has to know the region, and the way it does this is:
Number 3. Seems to fail on fargate
CCM does not guarantee region to be a part of But if it used the topology labels ( |
Ah, I see. Is the topology label always there, even on Fargate regions? If so that could be used instead, I can open a PR for it. |
As far as I know, CCM always has to set these. It's a part of the node-controller's contract. |
csi-controller finally worked by:
Controller is running on a fargate node, and run docker image With the helm chart, we was using |
Interesting, maybe the addon specifies the region for you? As an update on issues surrounding this: #1360 is in the pipeline and will prefer EC2 nodes over Fargate nodes when possible for the controller |
/kind bug
Hi,
What happened?
Container
ebs-plugin
failed to run onebs-csi-controller
pod.See error bellow :
ebs-csi-controller run on a fargate node, strange ?
What you expected to happen?
ebs-csi-controller
run without error, and we can usepvc
on a pod.How to reproduce it (as minimally and precisely as possible)?
Installed aws-ebs-csi-driver follow [aws documentation] https://docs.aws.amazon.com/eks/latest/userguide/aws-load-balancer-controller.html on EKS
Anything else we need to know?:
Our eks use ec2 nodes and fargate nodes. We want to use Volumes only on ec2 node because it doesn't work on fargate.
Environment
kubectl version
): 1.23.9Thanks for your help
The text was updated successfully, but these errors were encountered: