三节点k8s集群,2Master+1Node。
ks-apiserver状态不正常。
ks-apiserver-c47887b65-9xkqj 0/1 CrashLoopBackOff 5 5m45s
ks-apiserver-c47887b65-xbpc7 0/1 CrashLoopBackOff 5 5m47s
…
openpitrix-import-job-dkzvl 0/1 Init:0/1 0 9m33s
redis-ha-haproxy-7d77bf59c4-wjlbv 0/1 Init:CrashLoopBackOff 12 67m
redis-ha-haproxy-7d89fbfc65-9xzz5 0/1 Pending 0 12m
redis-ha-haproxy-d58c57677-jmfm7 1/1 Running 1 24h
redis-ha-haproxy-d58c57677-nht7l 1/1 Running 3 91d
redis-ha-server-0 2/2 Running 0 57m
redis-ha-server-1 2/2 Running 0 57m
redis-ha-server-2 0/2 Init:CrashLoopBackOff 6 12m
[root@sd-devops-05 ~]# kubectl logs redis-ha-server-2
error: a container name must be specified for pod redis-ha-server-2, choose one of: [redis sentinel] or one of the init containers: [config-init]
[root@sd-devops-05 ~]# kubectl logs ks-apiserver-c47887b65-xbpc7 -f
W1116 16:16:02.563433 1 client_config.go:615] Neither –kubeconfig nor –master was specified. Using the inClusterConfig. This might not work.
W1116 16:16:02.565040 1 client_config.go:615] Neither –kubeconfig nor –master was specified. Using the inClusterConfig. This might not work.
Error: failed to connect to redis service, please check redis status, error: dial tcp: i/o timeout
2021/11/16 16:16:07 failed to connect to redis service, please check redis status, error: dial tcp: i/o timeout
页面登录不了,页面报错:
equest to http://ks-apiserver/oauth/token failed, reason: getaddrinfo EAI_AGAIN ks-apiserver