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

2.3.1. Deploying your Node.js app: --generator is deprecated #4

Open
rbondi opened this issue Mar 18, 2021 · 3 comments
Open

2.3.1. Deploying your Node.js app: --generator is deprecated #4

rbondi opened this issue Mar 18, 2021 · 3 comments

Comments

@rbondi
Copy link

rbondi commented Mar 18, 2021

The chapter section says to run this command:

$ kubectl run kubia --image=luksa/kubia --port=8080 --generator=run/v1

With v1.18.1 of minikube, this returns:

Flag --generator has been deprecated, has no effect and will be removed in the future.
@PavelNickolaevich
Copy link

Hello! https://stackoverflow.com/questions/64306744/error-when-trying-to-expose-a-docker-container-in-minikube

@sxddhxrthx
Copy link

@rbondi from what I know, the command you mentioned is to create a replication controller is present in the 1st edition of the book which was released quite long back. Kubernetes has been updated quite a lot from then.

In earlier versions of kubernetes, a kubectl run command would create a deployment and in order to create an rc one would require to pass --generator=run/v1 flag.

In latest version (22, as of writing this comment) kubectl run would only create a pod and not a deployment and --generator flag has been deprecated.

@jz36
Copy link

jz36 commented Nov 28, 2022

@sxddhxrthx would you mind giving advice on which book should I read nowadays to learn Kubernetes?

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

4 participants