RolandMa1986K零S
tscswcn 首先检查一下你的主机上是否有 "/etc/localtime"文件,如果没有创建一个:
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
.再重启一下ks-installer
tscswcn 首先检查一下你的主机上是否有 "/etc/localtime"文件,如果没有创建一个:
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
.再重启一下ks-installer
有的,是个目录,1个空目录
是这个K3os 跟其他 linux 不一样吗
你尝试一下把这个空目录删除,然后执行ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime,然后重启installer
删除了,重启在进行了
现在出这个错 怎么诊断
tscswcn 可以重启一下ks-installer 看一下。 如果还是有错误,可以进到ks-installer POD中看日志:
cat /kubesphere/results/result-info/result/stdout
FAILED - RETRYING: KubeSphere | Waiting for ks-apiserver (11 retries left).
FAILED - RETRYING: KubeSphere | Waiting for ks-apiserver (10 retries left).
FAILED - RETRYING: KubeSphere | Waiting for ks-apiserver (9 retries left).
FAILED - RETRYING: KubeSphere | Waiting for ks-apiserver (8 retries left).
FAILED - RETRYING: KubeSphere | Waiting for ks-apiserver (7 retries left).
FAILED - RETRYING: KubeSphere | Waiting for ks-apiserver (6 retries left).
FAILED - RETRYING: KubeSphere | Waiting for ks-apiserver (5 retries left).
FAILED - RETRYING: KubeSphere | Waiting for ks-apiserver (4 retries left).
FAILED - RETRYING: KubeSphere | Waiting for ks-apiserver (3 retries left).
FAILED - RETRYING: KubeSphere | Waiting for ks-apiserver (2 retries left).
FAILED - RETRYING: KubeSphere | Waiting for ks-apiserver (1 retries left).
fatal: [localhost]: FAILED! => {“attempts”: 30, “changed”: true, “cmd”: “/usr/local/bin/kubectl get pod -n kubesphere-system -o wide | grep ks-apiserver | awk ‘{print $3}’”, “delta”: “0:00:00.094682”, “end”: “2021-06-03 17:25:46.448578”, “rc”: 0, “start”: “2021-06-03 17:25:46.353896”, “stderr”: "", “stderr_lines”: [], “stdout”: “ImagePullBackOff\nImagePullBackOff”, “stdout_lines”: [“ImagePullBackOff”, “ImagePullBackOff”]}
node-10-120-13-21 [~]# ctr images pull redis:5.0.5-alpine
ctr: failed to resolve reference “redis:5.0.5-alpine”: parse “dummy://redis:5.0.5-alpine”: invalid port “:5.0.5-alpine” after host
node-10-120-13-21 [~]# crictl pull redis:5.0.5-alpine
FATA[2021-06-04T13:57:27.039676370+08:00] pulling image: rpc error: code = Unknown desc = failed to pull and unpack image “docker.io/library/redis:5.0.5-alpine”: failed to copy: httpReaderSeeker: failed open: unexpected status code https://registry-1.docker.io/v2/library/redis/manifests/sha256:a606eaca41c3c69c7d2c8a142ec445e71156bae8526ae7970f62b6399e57761c: 429 Too Many Requests - Server message: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit
node-10-120-13-21 [~]#
这边我不知道 怎么把镜像 拉下来
tscswcn “You have reached your pull rate limit. ” Docker 现在拉取镜像有次数限制。你的ip已经被封了,可以等24小时。或者你在docker中配置个mirror 镜像服务。
你的集群有可能已经安装成功了。 运行 kubectl get pod -A
看一下是不是所有的pod都起来了
可以在对应的机器上登录 docker,提升拉取限制 : P
现在 ks-installer 里 的日志如下,请问怎么真短
E0605 16:14:56.425265 1 reflector.go:131] pkg/mod/k8s.io/client-go@v0.0.0-20190411052641-7a6b4715b709/tools/cache/reflector.go:99: Failed to list *unstructured.Unstructured: the server is currently unable to handle the request
E0605 16:14:57.425821 1 reflector.go:131] pkg/mod/k8s.io/client-go@v0.0.0-20190411052641-7a6b4715b709/tools/cache/reflector.go:99: Failed to list *unstructured.Unstructured: the server is currently unable to handle the request
E0605 16:14:58.426458 1 reflector.go:131] pkg/mod/k8s.io/client-go@v0.0.0-20190411052641-7a6b4715b709/tools/cache/reflector.go:99: Failed to list *unstructured.Unstructured: the server is currently unable to handle the request
E0605 16:14:59.427048 1 reflector.go:131] pkg/mod/k8s.io/client-go@v0.0.0-20190411052641-7a6b4715b709/tools/cache/reflector.go:99: Failed to list *unstructured.Unstructured: the server is currently unable to handle the request
E0605 16:15:00.427603 1 reflector.go:131] pkg/mod/k8s.io/client-go@v0.0.0-20190411052641-7a6b4715b709/tools/cache/reflector.go:99: Failed to list *unstructured.Unstructured: the server is currently unable to handle the request
E0605 16:15:01.428221 1 reflector.go:131] pkg/mod/k8s.io/client-go@v0.0.0-20190411052641-7a6b4715b709/tools/cache/reflector.go:99: Failed to list *unstructured.Unstructured: the server is currently unable to handle the request
E0605 16:15:02.428889 1 reflector.go:131] pkg/mod/k8s.io/client-go@v0.0.0-20190411052641-7a6b4715b709/tools/cache/reflector.go:99: Failed to list *unstructured.Unstructured: the server is currently unable to handle the request
E0605 16:15:03.429471 1 reflector.go:131] pkg/mod/k8s.io/client-go@v0.0.0-20190411052641-7a6b4715b709/tools/cache/reflector.go:99: Failed to list *unstructured.Unstructured: the server is currently unable to handle the request
E0605 16:15:04.430089 1 reflector.go:131] pkg/mod/k8s.io/client-go@v0.0.0-20190411052641-7a6b4715b709/tools/cache/reflector.go:99: Failed to list *unstructured.Unstructured: the server is currently unable to handle the request
E0605 16:15:05.430631 1 reflector.go:131] pkg/mod/k8s.io/client-go@v0.0.0-20190411052641-7a6b4715b709/tools/cache/reflector.go:99: Failed to list *unstructured.Unstructured: the server is currently unable to handle the request
E0605 16:15:06.431235 1 reflector.go:131] pkg/mod/k8s.io/client-go@v0.0.0-20190411052641-7a6b4715b709/tools/cache/reflector.go:99: Failed to list *unstructured.Unstructured: the server is currently unable to handle the request
E0605 16:15:07.431839 1 reflector.go:131] pkg/mod/k8s.io/client-go@v0.0.0-20190411052641-7a6b4715b709/tools/cache/reflector.go:99: Failed to list *unstructured.Unstructured: the server is currently unable to handle the request
E0605 16:15:08.432435 1 reflector.go:131] pkg/mod/k8s.io/client-go@v0.0.0-20190411052641-7a6b4715b709/tools/cache/reflector.go:99: Failed to list *unstructured.Unstructured: the server is currently unable to handle the request
E0605 16:15:09.434703 1 reflector.go:131] pkg/mod/k8s.io/client-go@v0.0.0-20190411052641-7a6b4715b709/tools/cache/reflector.go:99: Failed to list *unstructured.Unstructured: the server is currently unable to handle the request
node-10-120-13-235 [~]#
发现不是问题,可以登录,谢谢!