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

Using run with --replicas=3 #130

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

gandrille
Copy link

Using kubectl run with --replicas=3 does not create a deployment anymore, but a pod with --replicas flag ignored. So this solution is not valid anymore.

Using `kubectl run` with `--replicas=3` does not create a deployment anymore, but a pod with `--replicas` flag ignored. So this solution is not valid anymore.
@dgkanatsios
Copy link
Owner

thanks @gandrille, care to provide the alternative kubectl create deploy command?

@gandrille
Copy link
Author

I do not think this is doable using a single command anymore. I think now, we have to create the deployment using a single replica, and in a second time we can scale it up.
Maybe someone is more skilled than me for doing this in a single line :-)

@oojo12
Copy link

oojo12 commented Nov 5, 2020

I believe you can do something like this to create a deployment with 3 replicas

kubectl create deployment test --replicas 3

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

Successfully merging this pull request may close these issues.

3 participants