-
Notifications
You must be signed in to change notification settings - Fork 515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chapter 2 kubectl deployment doesn't work on a real cluster #27
Comments
This is the command that is needed on a cluster: $ sudo kubectl create deployment demo --image=demo Maybe on a single node too? |
@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 1.17 docs (https://v1-17.docs.kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#run) 1.18 docs (https://v1-18.docs.kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#run) 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. |
I'm running 1.18.2. Should probably go into the errata too. |
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! |
In chapter 2 the command you show to deploy the myhello application gives a different output than you show when I run it on the master of a 3 node cluster:
The output you show is:
deployment.apps "demo" created
When I try to do the port forwarding it fails because I have no deployments.
Do I need a deployment.yaml to deploy this onto a real cluster, or is there a different kubectl command I use?
The text was updated successfully, but these errors were encountered: