chapter 2.3.1 generator flag no longer working
kasanitej opened this issue · 1 comments
kasanitej commented
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 commented
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 usageFYI 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.