我修改/etc/resolv.conf
的配置为
nameserver 8.8.8.8
再次进行最小化安装,ks-apigateway直接起不来了。。。
[centos@k8s-node1 k8s]$ kubectl get pod -n kubesphere-system
NAME READY STATUS RESTARTS AGE
ks-account-596657f8c6-t6lwh 1/1 Running 2 6m7s
ks-apigateway-78bcdc8ffc-hlrdg 0/1 CrashLoopBackOff 5 6m8s
ks-apiserver-5b548d7c5c-p7bpv 1/1 Running 0 6m7s
ks-console-78bcf96dbf-xvrnk 1/1 Running 0 6m3s
ks-controller-manager-696986f8d9-4qjkx 1/1 Running 0 6m6s
ks-installer-75b8d89dff-28jz5 1/1 Running 0 7m28s
openldap-0 1/1 Running 0 6m28s
redis-6fd6c6d6f9-vk6k6 1/1 Running 0 6m37s
查看ks-apigateway日志如下:
[centos@k8s-node1 k8s]$ kubectl logs ks-apigateway-78bcdc8ffc-hlrdg -n kubesphere-system
2020/06/30 08:17:01 [INFO][cache:0xc00078c050] Started certificate maintenance routine
[DEV NOTICE] Registered directive 'authenticate' before 'jwt'
[DEV NOTICE] Registered directive 'authentication' before 'jwt'
[DEV NOTICE] Registered directive 'swagger' before 'jwt'
Activating privacy features... done.
E0630 08:17:06.752403 1 redis.go:51] unable to reach redis hostdial tcp: i/o timeout
2020/06/30 08:17:06 dial tcp: i/o timeout
头都要炸了,大佬们救救我吧 Forest-L @Cauchy @rayzhou2017