51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

request to http://ks-apiserver/oauth/token failed, reason: connect ECONNREFUSED

request to http://ks-apiserver/oauth/token failed, reason: connect ECONNREFUSED 10.233.39.209:80

kubectl get po -A

发现

kubesphere-system ks-apiserver-7f4d67c7bc-lsm9g 0/1 CrashLoopBackOff

查看日志:

kubectl logs -n kubesphere-system ks-apiserver-7f4d67c7bc-wbf9p

W1015 10:23:37.549781       1 client_config.go:615] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
W1015 10:23:37.552693       1 client_config.go:615] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
W1015 10:23:37.563395       1 metricsserver.go:238] Metrics API not available.
E1015 10:23:38.570271       1 cache.go:76] failed to create cache, error: dial tcp 10.233.13.78:6379: connect: connection refused
Error: failed to create cache, error: dial tcp 10.233.13.78:6379: connect: connection refused
2023/10/15 10:23:38 failed to create cache, error: dial tcp 10.233.13.78:6379: connect: connection refused

发现这个地址特别奇怪:

10.233.13.78:6379:

应该是 卸载的时候没有卸载干净?

不对

10.233.13.78:6379: connect: connection refused

这个是 redis 的问题,

看日志发现 redis 一直 pending

继续找 pending的原因

kubectl describe pod -n kubesphere-system redis-68d7fd7b96-5rkz4

Warning  FailedScheduling  48s (x29 over 29m)  default-scheduler  0/5 nodes are available: 5 pod has unbound immediate PersistentVolumeClaims.

nfs 有问题

发现 路径配置不对,

所以默认的存储类 PVC 的路径不对,导致 redis一直 pending, 进而影响 kubesphere 登录。

赞(1)
未经允许不得转载:工具盒子 » request to http://ks-apiserver/oauth/token failed, reason: connect ECONNREFUSED