csi-driver
csi-driver copied to clipboard
CrashLoopBackOff for hcloud-csi-controller with "Failed to connect to the CSI driver"
Environment:
Kubernetes version: 1.2.9 Hetzner Cloud CSI Driver version: latest Pod affected: hcloud-csi-controller Namespace: kube-system
Problem:
I am facing an issue where the hcloud-csi-controller pod goes into CrashLoopBackOff. 4 of the containers are consistently crashing, and logs show the following error message:
W1007 18:45:39.817729 1 connection.go:173] Still connecting to unix:///run/csi/socket
W1007 18:45:49.818479 1 connection.go:173] Still connecting to unix:///run/csi/socket
E1007 18:21:31.028816 1 main.go:149] "Failed to connect to the CSI driver" err="context deadline exceeded" csiAddress="/run/csi/socket"
The pod status indicates that only 1 out of 5 containers are running, with 4 stuck in a crash loop.
kube-system hcloud-cloud-controller-manager-865cf8bf5d-p2wgm 1/1 Running 0 61m
kube-system hcloud-csi-controller-55d4676fb9-z6d4w 1/5 CrashLoopBackOff 25 (2m32s ago) 11m
kube-system hcloud-csi-node-5hzm8 3/3 Running 0 11m
kube-system hcloud-csi-node-dq2xb 3/3 Running 0 11m
kube-system hcloud-csi-node-gk9q4 3/3 Running 0 11m
Setup: This is how I set up the CSI and Cloud Controller Manager:
kubectl apply -f https://raw.githubusercontent.com/hetznercloud/csi-driver/main/deploy/kubernetes/hcloud-csi.yml
kubectl apply -f https://github.com/hetznercloud/hcloud-cloud-controller-manager/releases/latest/download/ccm.yaml