Use Kubernetes to create a container that has been in the containercreating state for reasons of finding and resolving

Source: Internet
Author: User
Tags k8s

[[email protected] demo]# kubectl get pod

NAME Ready STATUS Restarts

BusyBox 0/1 containercreating 0 12m


[Email protected] demo]# kubectl describe pod busybox

Name:busybox

Namespace:default

node:k8s-node-1/10.0.0.12

Start Time:thu, June 2018 09:53:48 +0800

Labels: <none>

Status:pending

Ip:

Controllers: <none>

Containers:

BusyBox

Container ID:

Image:10.0.0.10:5000/busybox

Image ID:

Port:

Command:

Sleep

3600

State:waiting

Reason:containercreating

Ready:false

Restart count:0

Volume Mounts: <none>

Environment Variables: <none>

Conditions:

Type Status

Initialized True

Ready False

Podscheduled True

No volumes.

QoS Class:besteffort

Tolerations: <none>

Events:

Firstseen lastseen Count from Subobjectpath Type Reason Message

---------  --------  -----  ----           -------------   --------   ------      -------

15m 15m 1 {Default-scheduler} Normal scheduled successfully assigned BusyBox to K8s-node-1

15m 22s kubelet k8s-node-1} Warning failedsync Error syncing pod, skipping:failed to "Star Tcontainer "for" POD "with Imagepullbackoff:" Back-off pulling image \ "registry.access.redhat.com/rhel7/ Pod-infrastructure:latest\ ""

15m 11s 8 {kubelet k8s-node-1} Warning failedsync Error syncing pod, skipping:failed to "Star Tcontainer ' for ' POD ' with errimagepull: ' Image pull failed for registry.access.redhat.com/rhel7/pod-infrastructure:  Latest, this may because there is no credentials on the this request. Details: (open/etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt:no such file or directory) "


see registry.access.redhat.com/rhel7/pod-infrastructure:latest feels strange, I set the warehouse is Grc.io, why go to pull this image, suspect is not what is not installed well. Try to run Docker pull  registry.access.redhat.com /rhel7/pod-infrastructure:latest , prompting redhat-ca.crt:no such file or directory . LS View change file is a soft connection, link target is/ETC/RHSM, see no RHSM, try to install Yum install *rhsm*, the related software, feel more in line with, so installation view produced/etc/rhsm folder.

run Kubectl get again Pods

NAME Ready STATUS Restarts
Redis-master-qhd12 1/1 Running 0 13m






Use Kubernetes to create a container that has been in the containercreating state for reasons of finding and resolving

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.