Giter VIP home page Giter VIP logo

qsk-book's Issues

Experiencing errors on Linode when creating the qsk-book pod

Hi Nigel,

I am following the exact steps of your book Quick Start Kubernetes. I am not using my own Docker image but your's.
I created the K8n cluster on Linode as described in the book and everything is working as expected, both nodes are running and green. I have pulled your code from GitHub and didn't changed a single line, just running
kubectl apply -f pod.yml, which results in no error. But directly after this command the status of the Pod is


NAME        READY   STATUS             RESTARTS         AGE
first-pod   0/1     CrashLoopBackOff   10 (2m29s ago)   28m

When I look into the logs via kubectl logs -p first-pod I get exec /usr/local/bin/docker-entrypoint.sh: exec format error. kubectl describe shows the following output (only the last table):

Type     Reason     Age                  From               Message
  ----     ------     ----                 ----               -------
  Normal   Scheduled  30m                  default-scheduler  Successfully assigned default/first-pod to lke90787-137521-63de03d7609a
  Normal   Pulled     29m (x5 over 30m)    kubelet            Container image "nigelpoulton/qsk-book:1.0" already present on machine
  Normal   Created    29m (x5 over 30m)    kubelet            Created container web-ctr
  Normal   Started    29m (x5 over 30m)    kubelet            Started container web-ctr
  Warning  BackOff    25s (x141 over 30m)  kubelet            Back-off restarting failed container

I am not sure how to troubleshoot here and what the problem could be as the Dockerfile and app is rather simple and the cluster is healthy.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.