[英]deploying image in kubernetes cluster getting CrashLoopBackOff
我正在使用kubernetes集群通過kubectl create -f dummy.yaml部署映像。 我的映像在docker hub中是公開的,映像的大小為1.3 GB。 圖像拉取成功,但未運行,它是“ CrashLoopBackOff”。 當我運行創建部署命令“ kubectl create -f dummy.yaml”時,我得到了:
Name READY STATUS RESTARTS AGE
dummy-ser-5459bf444d-9b7sz 0/1 CrashLoopBackOff 118 10h
我試圖用
command: [ "/bin/bash", "-c", "--" ] args: [ "while true; do sleep 30; done;" ]
command: [ "/bin/bash", "-c", "--" ] args: [ "while true; do sleep 30; done;" ]
在我的yaml文件中,它的圖像大小為700 MB,但是當我將其與其他1.3 GB圖像一起使用時,它顯示CrashLoopBackOff,看來拉后的容器無法運行,因為成功拉出了圖像。
describe pods顯示:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 12m default-scheduler Successfully assigned dummy-ser-779 7db4cd4-djqdz to node02
Normal SuccessfulMountVolume 12m kubelet, node02 MountVolume.SetUp succeeded for vol ume "default-token-8p9lq"
Normal Created 1m (x4 over 2m) kubelet, node02 Created container
Normal Started 1m (x4 over 2m) kubelet, node02 Started container
Warning BackOff 53s (x8 over 2m) kubelet, node02 Back-off restarting failed containe r
Normal Pulling 41s (x5 over 12m) kubelet, node02 pulling image "xxx/dummyenc:ba ni"
Normal Pulled 40s (x5 over 2m) kubelet, node02 Successfully pulled image "xxx
謝謝高級
我解決了這個問題。 我收到此錯誤,是因為該映像與我嘗試在(ARM7)RPi上運行的硬件不兼容。 我使用Dockerfile的docker build在ubuntu 64bit上創建了映像,因此該映像無法在Raspberry pi上運行。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.