Skip to content
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.3.1 generator flag no longer working #33

Open
kasanitej opened this issue Jul 18, 2021 · 1 comment
Open

chapter 2.3.1 generator flag no longer working #33

kasanitej opened this issue Jul 18, 2021 · 1 comment

Comments

@kasanitej
Copy link

Hi,

Just started reading your book. But the command "kubectl run kubia --image=luksa/kubia --port=8080 --generator=run/v1" throws me the error```
Error: unknown flag: --generator
See 'kubectl run --help' for usage

FYI luksa/kubia is replaced with my dockerhub registry image 496620/server


As per the  [stackoverflow](https://stackoverflow.com/questions/52890718/kubectl-run-is-deprecated-looking-for-alternative) generator is deprecated. If that is the case, which command to use to create the replicationcontroller ?
@AGou-ops
Copy link

Hi,

Just started reading your book. But the command "kubectl run kubia --image=luksa/kubia --port=8080 --generator=run/v1" throws me the error```
Error: unknown flag: --generator
See 'kubectl run --help' for usage

FYI luksa/kubia is replaced with my dockerhub registry image 496620/server


As per the  [stackoverflow](https://stackoverflow.com/questions/52890718/kubectl-run-is-deprecated-looking-for-alternative) generator is deprecated. If that is the case, which command to use to create the replicationcontroller ?

Flag --generator is DEPRECATED, maybe after k8s ver1.18? I'm not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants