あなたは '説明ポッドを' を使用することができますOpenShiftを使用するための構文
:バニラKubernetesについては
oc describe pod <pod-id>
:
kubectl describe pod <pod-id>
出力のイベントを調べます。 私のケースでは、画像coredns/corednsを引っ張っバックオフを示しています。最新の
Events:
FirstSeen LastSeen Count From SubObjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
5m 5m 1 {default-scheduler } Normal Scheduled Successfully assigned coredns-4224169331-9nhxj to 192.168.122.190
5m 1m 4 {kubelet 192.168.122.190} spec.containers{coredns} Normal Pulling pulling image "coredns/coredns:latest"
4m 26s 4 {kubelet 192.168.122.190} spec.containers{coredns} Warning Failed Failed to pull image "coredns/coredns:latest": Network timed out while trying to connect to https://index.docker.io/v1/repositories/coredns/coredns/images. You may want to check your internet connection or if you are behind a proxy.
4m 26s 4 {kubelet 192.168.122.190} Warning FailedSync Error syncing pod, skipping: failed to "StartContainer" for "coredns" with ErrImagePull: "Network timed out while trying to connect to https://index.docker.io/v1/repositories/coredns/coredns/images. You may want to check your internet connection or if you are behind a proxy."
4m 2s 7 {kubelet 192.168.122.190} spec.containers{coredns} Normal BackOff Back-off pulling image "coredns/coredns:latest"
4m 2s 7 {kubelet 192.168.122.190} Warning FailedSync Error syncing pod, skipping: failed to "StartContainer" for "coredns" with ImagePullBackOff: "Back-off pulling image \"coredns/coredns:latest\""
これは、マルチマシンのセットアップですか?もしそうなら、すべてのノードから引き出すことができます。そうでない場合は、ノード上で--loglevel = 5にログを記録して再起動してください。画像を取得しようとしたときの情報とエラーが表示されます。 – Clayton
loglevel = 5で再起動した後に何が出ましたか? – lvthillo
問題を解決しましたか?誰かがこの「ImagePullBackOff」の問題を説明できますか? (画像は私の「ドッカー画像」にあります) – ItayB