lgh-devK零S
- 已编辑
kubesphere-system ks-account-89cc49745-khclz 0/1 Init:0/2 1 7h43m
我翻遍了github和论坛,有说dns的问题,也有说是busybox的版本问题。
最后发现是内网端口6379
没开导致的。官网的文档并没有提到这个端口。排查了整整一天。
我是怎么发现的呢。
docker ps |grep ks-acc
查出wait_redis容器。
通过下面命令进入容器内部。
docker exec -it dc7d /bin/sh
通过ping redis
命令发现内ping通的。
64 bytes from 10.233.30.10: seq=0 ttl=64 time=0.079 ms
64 bytes from 10.233.30.10: seq=1 ttl=64 time=0.094 ms
64 bytes from 10.233.30.10: seq=2 ttl=64 time=0.138 ms
使用top的命令时发现有一个通过域名+6379端口访问redis的进程timeout。
容器的日志也直致显示是
wait for redis
wait for redis
wait for redis
才想起没有开放6379
这个端口。端口一开放,马上就ks-account
就自动启动了。
特此发帖记录。以助他人。
附上官方文档的端口开放指南页面
查询所有pod,下面可以看到ks-account已经正常了。
kubectl get pod -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system calico-kube-controllers-b5468457c-zhgq5 1/1 Running 3 14h
kube-system calico-node-s8mv6 1/1 Running 4 14h
kube-system coredns-7f9d8dc6c8-g24jx 1/1 Running 3 14h
kube-system dns-autoscaler-796f4ddddf-d9xdt 1/1 Running 3 14h
kube-system kube-apiserver-ks-allinone 1/1 Running 3 14h
kube-system kube-controller-manager-ks-allinone 1/1 Running 7 14h
kube-system kube-proxy-6xd4d 1/1 Running 3 14h
kube-system kube-scheduler-ks-allinone 1/1 Running 7 14h
kube-system nodelocaldns-p6n4l 1/1 Running 3 14h
kube-system openebs-localpv-provisioner-77fbd6858d-gk565 1/1 Running 3 13h
kube-system openebs-ndm-mstwt 1/1 Running 3 13h
kube-system openebs-ndm-operator-59c75c96fc-8gc5c 1/1 Running 4 13h
kube-system tiller-deploy-79b566b5ff-ww6gz 1/1 Running 3 14h
kubesphere-controls-system default-http-backend-5d464dd566-fkmfj 1/1 Running 3 13h
kubesphere-controls-system kubectl-admin-6c664db975-q4zpm 1/1 Running 3 12h
kubesphere-monitoring-system kube-state-metrics-566cdbcb48-8nh2b 4/4 Running 12 13h
kubesphere-monitoring-system node-exporter-v8589 1/2 CrashLoopBackOff 171 13h
kubesphere-monitoring-system prometheus-k8s-0 3/3 Running 10 13h
kubesphere-monitoring-system prometheus-k8s-system-0 3/3 Running 10 13h
kubesphere-monitoring-system prometheus-operator-6b97679cfd-7t6jj 1/1 Running 3 13h
kubesphere-system ks-account-599cf4dc6b-qtmgf 1/1 Running 0 29m
kubesphere-system ks-apigateway-7c8fbbc997-xmjwz 1/1 Running 0 29m
kubesphere-system ks-apiserver-8578ff675b-ttw78 1/1 Running 0 29m
kubesphere-system ks-console-7c9c5f6764-xsqhs 1/1 Running 0 29m
kubesphere-system ks-controller-manager-6c9845567-5rvcv 1/1 Running 0 29m
kubesphere-system ks-installer-7d9fb945c7-5hckd 1/1 Running 3 13h
kubesphere-system openldap-0 1/1 Running 3 13h
kubesphere-system redis-6fd6c6d6f9-4j58h 1/1 Running 3 13h