1st deployment fails

71 views
Skip to first unread message

Muhammad Ali

unread,
Oct 22, 2017, 6:19:38 AM10/22/17
to Kubernetes user discussion and Q&A
Hi,

I am new to Kubernetes and amateur in linux using some tutorial I have installed kubernetes for Windows successfully and run it. After creating my 1st deployment it doesn't start:

PS C:\> kubectl get pods
NAME                           READY     STATUS             RESTARTS   AGE
hello-nginx-54cdff59b8-vbxt9   0/1       CrashLoopBackOff   27         3h

Error says CrashLoopBackOff 



Pod description:

PS C:\> kubectl get pods
NAME                           READY     STATUS             RESTARTS   AGE
hello-nginx-54cdff59b8-vbxt9   0/1       CrashLoopBackOff   27         3h
PS C:\> kubectl describe pods
Name:           hello-nginx-54cdff59b8-vbxt9
Namespace:      default
Node:           minikube/192.168.99.100
Start Time:     Sun, 22 Oct 2017 12:11:03 +0500
Labels:         pod-template-hash=1078991564
                run=hello-nginx
Annotations:    kubernetes.io/created-by={"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"ReplicaSet","namespace":"default","name":"hello-nginx-54cdff59b8","uid":"2a111c74-b6f8-11e7-99ed-0800
27847...
Status:         Running
IP:             172.17.0.4
Created By:     ReplicaSet/hello-nginx-54cdff59b8
Controlled By:  ReplicaSet/hello-nginx-54cdff59b8
Containers:
  hello-nginx:
    Container ID:  docker://252a5a530e84b53856fba8277ca42b5b2f471502cbecae63e2e62c4a2c112d4e
    Image:         nginx
    Image ID:      docker-pullable://nginx@sha256:004ac1d5e791e705f12a17c80d7bb1e8f7f01aa7dca7deee6e65a03465392072
    Port:          80/TCP
    Args:
      deployment
      hello-nginx
      created
    State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       ContainerCannotRun
      Message:      invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"deployment\\\": executable file not found in $PATH\"\n"
      Exit Code:    127
      Started:      Sun, 22 Oct 2017 15:12:34 +0500
      Finished:     Sun, 22 Oct 2017 15:12:34 +0500
    Ready:          False
    Restart Count:  27
    Environment:    <none>
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-zcg7k (ro)
Conditions:
  Type           Status
  Initialized    True
  Ready          False
  PodScheduled   True
Volumes:
  default-token-zcg7k:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  default-token-zcg7k
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  <none>
Tolerations:     <none>
Events:
  Type     Reason      Age                 From               Message
  ----     ------      ----                ----               -------
  Warning  Failed      36m                 kubelet, minikube  Failed to pull image "nginx": rpc error: code = Unknown desc = Tag latest not found in repository docker.io/library/nginx
  Normal   Pulling     36m (x23 over 3h)   kubelet, minikube  pulling image "nginx"
  Normal   Created     36m (x22 over 3h)   kubelet, minikube  Created container
  Warning  Failed      36m (x22 over 3h)   kubelet, minikube  Error: failed to start container "hello-nginx": executable not found in $PATH
  Normal   Pulled      25m (x24 over 3h)   kubelet, minikube  Successfully pulled image "nginx"
  Warning  FailedSync  5m (x523 over 3h)   kubelet, minikube  Error syncing pod
  Warning  BackOff     32s (x518 over 3h)  kubelet, minikube  Back-off restarting failed container
PS C:\>



Need solution thanks want to learn cloud.

Regards
Muhammad Ali

Reply all
Reply to author
Forward
0 new messages