Comments (4)
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.
@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.
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.
I'm running 1.18.2. Should probably go into the errata too.
from demo.
Related Issues (13)
- safaribooksonline.com code examples HOT 7
- Somwhat confusing port mapping in example HOT 2
- apiVersion: extensions/v1beta1 errors HOT 4
- hello-helm example fails to install HOT 4
- Helm 3 HOT 2
- Sops example error HOT 2
- Sops and helm usage proposal HOT 2
- Known issue guide HOT 1
- kubectl port-forward gives "error upgrading connection: error dialing backend: dial tcp 10.204.101.149:10250: i/o timeout" HOT 5
- Error: container has runAsNonRoot and image will run as root HOT 1
- error: unable to recognize "k8s/deployment.yaml": no matches for kind "Deployment" in version "extensions/v1beta1" HOT 10
- ERR_EMPTY_RESPONSE with hello Docker HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from demo.