- 已编辑
操作系统信息
物理机,ARM64架构,银河麒麟服务器版V10
Linux version 4.19.90-25.18.v2101.ky10.aarch64 (KYLINSOFT@localhost.localdomain) (gcc version 7.3.0 (GCC)) #1 SMP Thu Aug 4 14:53:52 CST 2022。
Kubernetes版本信息
kubernetes v1.22.10,多节点。使用kk v2.2.1安装
容器运行时
Docker version 20.10.9, build c2ea9bc
KubeSphere版本信息
kubesphere v3.3.0
问题是什么
ks-console一直CrashLoopBackOff,中间有一次显示Running,再查询又变成CrashLoopBackOff。
上网查了很久也没有找到答案,不知道怎么查问题了,希望高手指点一下,先谢谢啦。
使用kk v2.2.1安装,命令:./kk create config –with-kubernetes v1.22.10 –with-kubesphere v3.3.0
查看LOG
kubectl logs -n kubesphere-system -f ks-console-54bd5bcbc6-llxls
<--- Last few GCs --->
<--- JS stacktrace --->
#
# Fatal process OOM in insufficient memory to create an Isolate
查看describe
kubectl -n kubesphere-system describe pod ks-console-54bd5bcbc6-llxls
Name: ks-console-54bd5bcbc6-llxls
Namespace: kubesphere-system
Priority: 0
Node: k8s-node3/192.168.169.173
Start Time: Fri, 02 Sep 2022 09:45:40 +0800
Labels: app=ks-console
pod-template-hash=54bd5bcbc6
tier=frontend
Annotations: cni.projectcalico.org/containerID: de57c1c5ea5fe2c466dc7419e3769c63e12cc9cad05e0c7a292d7c2b99749591
cni.projectcalico.org/podIP: 10.233.111.8/32
cni.projectcalico.org/podIPs: 10.233.111.8/32
Status: Running
IP: 10.233.111.8
IPs:
IP: 10.233.111.8
Controlled By: ReplicaSet/ks-console-54bd5bcbc6
Containers:
ks-console:
Container ID: docker://16e06a2c348629c8c114dba758bf809916132ba283f887a45ece4f7f9ab9ceeb
Image: kubesphere/ks-console:v3.3.0
Image ID: docker-pullable://kubesphere/ks-console@sha256:6ad4af3742c3ac722405fd5749ddfda517916c4da24c50eea3049dea9e9cfeda
Port: <none>
Host Port: <none>
State: Waiting
Reason: CrashLoopBackOff
Last State: Terminated
Reason: Error
Exit Code: 133
Started: Fri, 02 Sep 2022 10:27:28 +0800
Finished: Fri, 02 Sep 2022 10:27:29 +0800
Ready: False
Restart Count: 13
Limits:
cpu: 1
memory: 1Gi
Requests:
cpu: 20m
memory: 100Mi
Liveness: tcp-socket :8000 delay=15s timeout=15s period=10s #success=1 #failure=8
Environment: <none>
Mounts:
/etc/localtime from host-time (ro)
/opt/kubesphere/console/server/local_config.yaml from ks-console-config (rw,path="local_config.yaml")
/opt/kubesphere/console/server/sample from sample-bookinfo (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-7mfrp (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
ks-console-config:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: ks-console-config
Optional: false
sample-bookinfo:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: sample-bookinfo
Optional: false
host-time:
Type: HostPath (bare host directory volume)
Path: /etc/localtime
HostPathType:
kube-api-access-7mfrp:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional: <nil>
DownwardAPI: true
QoS Class: Burstable
Node-Selectors: <none>
Tolerations: CriticalAddonsOnly op=Exists
node-role.kubernetes.io/master:NoSchedule
node.kubernetes.io/not-ready:NoExecute op=Exists for 60s
node.kubernetes.io/unreachable:NoExecute op=Exists for 60s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 46m default-scheduler Successfully assigned kubesphere-system/ks-console-54bd5bcbc6-llxls to k8s-node3
Normal Pulled 46m kubelet Successfully pulled image "kubesphere/ks-console:v3.3.0" in 3.190808775s
Normal Pulled 46m kubelet Successfully pulled image "kubesphere/ks-console:v3.3.0" in 3.097496041s
Normal Pulled 46m kubelet Successfully pulled image "kubesphere/ks-console:v3.3.0" in 3.097480322s
Normal Pulling 45m (x4 over 46m) kubelet Pulling image "kubesphere/ks-console:v3.3.0"
Normal Created 45m (x4 over 46m) kubelet Created container ks-console
Normal Started 45m (x4 over 46m) kubelet Started container ks-console
Normal Pulled 45m kubelet Successfully pulled image "kubesphere/ks-console:v3.3.0" in 4.206404013s
Warning BackOff 78s (x220 over 46m) kubelet Back-off restarting failed container