我也遇到这个问题,k8s v1.21.11 多master集群上安装kubesphere v3.2.1,ks-apiserver和redis-ha-server-0起不来
这是在测试环境部署的,准备引入生产环境。
帮忙看下,感谢!
[root@ks-master3 heketi]# kubectl get pods -n kubesphere-system
NAME READY STATUS RESTARTS AGE
ks-apiserver-5578d6cf6f-nvgck 0/1 CrashLoopBackOff 10 33m
ks-apiserver-5578d6cf6f-qlwzp 0/1 CrashLoopBackOff 10 33m
ks-apiserver-794b78d766-mxqxr 0/1 CrashLoopBackOff 10 33m
ks-console-65f4d44d88-86lmg 1/1 Running 0 37m
ks-console-65f4d44d88-8ffkr 1/1 Running 0 37m
ks-console-65f4d44d88-t8pr8 1/1 Running 0 37m
ks-controller-manager-7598dd7db7-2dwd4 1/1 Running 0 33m
ks-controller-manager-7598dd7db7-fgdfx 1/1 Running 0 33m
ks-controller-manager-7598dd7db7-jpwhk 1/1 Running 0 32m
ks-installer-85dcfff87d-t6vsc 1/1 Running 0 48m
redis-ha-haproxy-868fdbddd4-g6zj6 1/1 Running 0 40m
redis-ha-haproxy-868fdbddd4-rbqv6 1/1 Running 0 40m
redis-ha-haproxy-868fdbddd4-rtgms 1/1 Running 0 40m
redis-ha-server-0 0/2 Init:0/1 0 40m
kubectl -n kubesphere-system describe pod redis-ha-server-0
...
status 32
Mounting command: systemd-run
Mounting arguments: --description=Kubernetes transient mount for /var/lib/kubelet/pods/f4dc9c60-8742-45f5-9541-0f41c235d4d7/volumes/kubernetes.io~glusterfs/pvc-e9c083df-bb41-4580-b89d-ec8edfdcd20b --scope -- mount -t glusterfs -o auto_unmount,backup-volfile-servers=192.168.142.138:192.168.142.139:192.168.142.96,log-file=/var/lib/kubelet/plugins/kubernetes.io/glusterfs/pvc-e9c083df-bb41-4580-b89d-ec8edfdcd20b/redis-ha-server-0-glusterfs.log,log-level=ERROR 192.168.142.96:vol_5dba7beb565c1bf41dc19563531d9b97 /var/lib/kubelet/pods/f4dc9c60-8742-45f5-9541-0f41c235d4d7/volumes/kubernetes.io~glusterfs/pvc-e9c083df-bb41-4580-b89d-ec8edfdcd20b
Output: Running scope as unit run-31764.scope.
mount: unknown filesystem type 'glusterfs'
, the following error information was pulled from the glusterfs log to help diagnose this issue: could not open log file for pod redis-ha-server-0
Warning FailedMount 10m (x18 over 38m) kubelet (combined from similar events): MountVolume.SetUp failed for volume "pvc-e9c083df-bb41-4580-b89d-ec8edfdcd20b" : mount failed: mount failed: exit status 32
Mounting command: systemd-run
Mounting arguments: --description=Kubernetes transient mount for /var/lib/kubelet/pods/f4dc9c60-8742-45f5-9541-0f41c235d4d7/volumes/kubernetes.io~glusterfs/pvc-e9c083df-bb41-4580-b89d-ec8edfdcd20b --scope -- mount -t glusterfs -o auto_unmount,backup-volfile-servers=192.168.142.138:192.168.142.139:192.168.142.96,log-file=/var/lib/kubelet/plugins/kubernetes.io/glusterfs/pvc-e9c083df-bb41-4580-b89d-ec8edfdcd20b/redis-ha-server-0-glusterfs.log,log-level=ERROR 192.168.142.138:vol_5dba7beb565c1bf41dc19563531d9b97 /var/lib/kubelet/pods/f4dc9c60-8742-45f5-9541-0f41c235d4d7/volumes/kubernetes.io~glusterfs/pvc-e9c083df-bb41-4580-b89d-ec8edfdcd20b
Output: Running scope as unit run-25511.scope.
mount: unknown filesystem type 'glusterfs'
, the following error information was pulled from the glusterfs log to help diagnose this issue: could not open log file for pod redis-ha-server-0
Warning FailedMount 4m40s (x9 over 31m) kubelet Unable to attach or mount volumes: unmounted volumes=[data], unattached volumes=[config data kube-api-access-w85dk]: timed out waiting for the condition
Warning FailedMount 7s (x5 over 38m) kubelet Unable to attach or mount volumes: unmounted volumes=[data], unattached volumes=[kube-api-access-w85dk config data]: timed out waiting for the condition
kubectl -n kubesphere-system logs -f ks-apiserver-5578d6cf6f-nvgck
[root@ks-master1 kubesphere]# kubectl -n kubesphere-system logs -f ks-apiserver-5578d6cf6f-nvgck
W0325 10:19:02.245683 1 client_config.go:615] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
W0325 10:19:02.253978 1 client_config.go:615] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
W0325 10:19:02.280574 1 metricsserver.go:238] Metrics API not available.
Error: failed to connect to redis service, please check redis status, error: EOF
2022/03/25 10:19:02 failed to connect to redis service, please check redis status, error: EOF