Git Product home page Git Product logo

Comments (4)

domingusj avatar domingusj commented on June 22, 2024 2

PR merged with updated Known Issue in the README.

(Not sure why GitHub labeled the PR as "Closed" instead of "Merged").

Also submitted errata to O'Reilly.

Thank you @dwschulze for catching this!

from demo.

domingusj avatar domingusj commented on June 22, 2024 1

@dwschulze thanks for opening an issue!

Are you by chance running version 1.18 of Kubernetes?

I think the issue you are experiencing could be due to a change in the 1.18 release. The latest release of Kubernetes back when the book was published was 1.10 or 1.11 so this could be a case where Kubernetes has changed something and our example no longer works with newer versions.

After searching docs between 1.17 and 1.18 it looks like kubectl run no longer creates a Deployment:

1.17 docs (https://v1-17.docs.kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#run)
Creates a deployment or job to manage the created container(s).

1.18 docs (https://v1-18.docs.kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#run)
Create and run a particular image in a pod.

Let us know if that lines up with your current version and we'll get an update to the Known Issues section in the demo repo with an updated example.

from demo.

dwschulze avatar dwschulze commented on June 22, 2024

This is the command that is needed on a cluster:

$ sudo kubectl create deployment demo --image=demo

Maybe on a single node too?

from demo.

dwschulze avatar dwschulze commented on June 22, 2024

I'm running 1.18.2. Should probably go into the errata too.

from demo.

Related Issues (13)

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.