If you `kubectl describe` the pod you will see why, I hope.

On Fri, May 25, 2018 at 2:03 AM dan.steffen.de via Kubernetes user
discussion and Q&A <kubernetes-users@googlegroups.com> wrote:

> Hello,
>
> I am not quite sure if this is the right place for my question but is
> there a different between the images from gcr.io and docker.io? The
> background for my question is that the following code is working:
>
> apiVersion: v1
> kind: Pod
> metadata:
>   name: writer
> spec:
>   containers:
>   - name: debian9
>     image: gcr.io/google_containers/nginx-slim:0.8
>     securityContext:
>       privileged: true
>     volumeMounts:
>     - name: test-vol
>       mountPath: /mnt
>   volumes:
>   - name: test-vol
>     persistentVolumeClaim:
>       claimName: test-claim
>   nodeSelector:
>     worker: eins
>
> but when I replace the image line by:
>
>     image: docker.io/debian:9.0
>
> I get a CrashLoopBackOff
>
> $ kubectl get pod
> NAME      READY     STATUS             RESTARTS   AGE
> writer    0/1       CrashLoopBackOff   1          5s
>
> This is not quite important, but regardless I would very thankful if can
> someone explain me the reason.
> best regards
> Dan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q&A" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kubernetes-users+unsubscr...@googlegroups.com.
> To post to this group, send email to kubernetes-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.
  • [kubernetes-... dan.steffen.de via Kubernetes user discussion and Q&A
    • Re: [ku... 'Tim Hockin' via Kubernetes user discussion and Q&A
    • Re: [ku... 'Ahmet Alp Balkan' via Kubernetes user discussion and Q&A

Reply via email to