kubectl create is currently too limited. kubectl run gave a-lot flexibility in creating deployments and jobs via command-line.
We can do very little with kubectl create without editing yaml file. In my opinion it was a very bad idea to remove generators in kubectl run without providing similar functionality in kubectl create.
What would you like to be added:
Add the functionality lost as a result of generators removal from kubectl run. We should be able to add labels, replicas, requests, limits or any other functionality that is supported by kubectl run.
Flags required:
Why is this needed:
The current kubectl create is way too limited!! It really hinders what can be done via command-line.
Related issue: https://github.com/kubernetes/kubernetes/issues/88888
Related PRs:
replicas: https://github.com/kubernetes/kubernetes/pull/91562
env: https://github.com/kubernetes/kubernetes/pull/93269
@armujahid there's a discussion that needs to be had about enhancing kubectl create/run and their intended goals. I've added it to the agenda for our next SIG-CLI meeting and it would be great to have you join us.
Next meeting is August 12th at 9:00 AM Pacific Time.
https://github.com/kubernetes/community/tree/master/sig-cli#meetings
/priority awaiting-more-evidence
@armujahid are you ok closing this after the SIG-CLI discussion?
As a note of historical reference it was discussed that create/run commands are not going to be expanded to push folks to use other tools and best practices. We will be spinning up a new SIG subproject to attempt to tackle a kubectl generate.
Will link to recording when it's uploaded.
Sure. I would love to contribute to kubectl generate
Most helpful comment
Sure. I would love to contribute to
kubectl generate