Skip to content

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