-
Notifications
You must be signed in to change notification settings - Fork 174
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
Timed out waiting for external-attacher of ch.ctrox.csi.s3-driver CSI driver to attach volume #80
Comments
I had the same problem, I looked at the logs of the kubectl -n kube-system set image statefulset/csi-attacher-s3 csi-attacher=quay.io/k8scsi/csi-attacher:canary Next I got a permission error: `v1.VolumeAttachment: failed to list *v1.VolumeAttachment: volumeattachments.storage.k8s.io is forbidden: User "system:serviceaccount:kube-system:csi-attacher-sa" cannot list resource "volumeattachments" in API group "storage.k8s.io" at the cluster scope. I tried to modify the role bindings but I couldn't find the right combinations so I ended up giving the csi-attacher-sa service account cluster-admin privileges as shown below: kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: csi-attacher-all
subjects:
- kind: ServiceAccount
name: csi-attacher-sa
namespace: kube-system
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin |
@fallmo I've had the same problem, but you can just do this and it worked for me.
or
|
Related to #72 (comment) Mine fixed by using this https://github.com/ctrox/csi-s3/pull/70/files |
did this and it seemed to work (haven't checked it right after)
which made it work 👍 |
So for anyone else who came here after realising that since a Kubernetes upgrade they couldn't create/mount new S3 volumes anymore, I'll save you some time;
That should have it working again until the next (seemingly inevitable) breaking change :) |
After changing the above one pod is went to running state but we are getting this issue. |
@Venkatesh7591 you save my day, it worked. Thank you! |
@Venkatesh7591 Hello I have encountered the same problem, have you solved it now |
follow the @RobinJ1995 instructions. |
Many thanks! |
issue #94 this
work for us |
Only test pod's
mountPath
changed to/var/www/html
.pod.yaml:
I get an error
timed out waiting for external-attacher of ch.ctrox.csi.s3-driver CSI driver to attach volume
while creating pods:Is it an network issue? Or any kind of mis-configurations? Thanks.
environment:
The text was updated successfully, but these errors were encountered: