<h1>kubectl create -f web.yml</h1>

<h1>kubectl get pods -o wide</h1>

<p>NAME      READY     STATUS              RESTARTS   AGE       IP        NODE
httpd     0/1       ContainerCreating   0          1h            kube-node2</p>

<p>[root@kube-master pods]# kubectl get pods -o wide
NAME      READY     STATUS              RESTARTS   AGE       IP        NODE
httpd     0/1       ContainerCreating   0          1h            kube-node2</p>

<blockquote>
  <p>[root@kube-master pods]# kubectl describe pods httpd Name:        httpd
  Namespace:    default Node:       kube-node2/10.10.0.102 Start Time:  Mon, 30
  Oct 2017 17:47:38 +0600 Labels:       app=webserver Status:       Pending IP:<br>
  Controllers:   Containers:   httpd:
      Container ID:<br>
      Image:            webserver
      Image ID:<br>
      Port:         80/TCP
      State:            Waiting
        Reason:         ContainerCreating
      Ready:            False
      Restart Count:        0
      Volume Mounts:        
      Environment Variables:     Conditions:   Type       Status   Initialized    True    Ready   False    PodScheduled   True  No volumes.
  QoS Class:    BestEffort Tolerations:  Events:<br>
  FirstSeen LastSeen    Count   From            SubObjectPath   Type        Reason      Message<br>
  --------- --------    -----   ----            -------------   --------    ------      -------   1h        5m      16  {kubelet kube-node2}<br>
  Warning       FailedSync  Error syncing</p>
  
  <blockquote>
    <p>pod, skipping: failed to "StartContainer" for "POD" with ErrImagePull:
    "image pull failed for
    registry.access.redhat.com/rhel7/pod-infrastructure:latest, this may
    be because there are no credentials on this request.  details: (open
    /etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt: no such
    file or directory)"</p>
    
    <p>1h    8s  271 {kubelet kube-node2}        Warning FailedSync  Error syncing
    pod, skipping: failed to "StartContainer" for "POD" with
    ImagePullBackOff: "Back-off pulling image
    \
    "registry.access.redhat.com/rhel7/pod-infrastructure:latest\""</p>
  </blockquote>
</blockquote>

<p>registry should go to hub.docker but here says </p>

<blockquote>
  <p>Error syncing pod, skipping: failed to "StartContainer" for "POD" with
  ErrImagePull: "image pull failed for
  registry.access.redhat.com/rhel7/pod-infrastructure:latest, this may
  be because there are no credentials on this request.  details: (open
  /etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt: no such
  file or directory)"</p>
</blockquote>

<p>Why ?</p>

<p>Please give me solution</p>

<p>I encounter the same problem, and i found that i not install rhsm related software on machine, you can execute command "yum install <em>rhsm</em>" to solve this problem.</p>
