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

Enhance kubectl create (Add useful flags from kubectl run e.g. replicas, labels, requests, limits, env, port etc.) #898

Closed
armujahid opened this issue Jul 28, 2020 · 6 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.

Comments

@armujahid
Copy link

armujahid commented Jul 28, 2020

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:

  • replicas
  • labels
  • requests
  • limits
  • env
  • port
  • serviceaccount

Why is this needed:
The current kubectl create is way too limited!! It really hinders what can be done via command-line.

Related issue: kubernetes/kubernetes#88888

@armujahid armujahid added the kind/feature Categorizes issue or PR as related to a new feature. label Jul 28, 2020
@armujahid armujahid changed the title Enhance kubectl create (Add useful flags from kubectl run e.g. replicas, labels, requests, limits etc.) Enhance kubectl create (Add useful flags from kubectl run e.g. replicas, labels, requests, limits, env etc.) Jul 28, 2020
@armujahid
Copy link
Author

armujahid commented Jul 28, 2020

Related PRs:
replicas: kubernetes/kubernetes#91562
env: kubernetes/kubernetes#93269

@armujahid armujahid changed the title Enhance kubectl create (Add useful flags from kubectl run e.g. replicas, labels, requests, limits, env etc.) Enhance kubectl create (Add useful flags from kubectl run e.g. replicas, labels, requests, limits, env, port etc.) Jul 28, 2020
@eddiezane
Copy link
Member

@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

@k8s-ci-robot k8s-ci-robot added the priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. label Jul 29, 2020
@eddiezane
Copy link
Member

@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.

@armujahid
Copy link
Author

Sure. I would love to contribute to kubectl generate

@bbugh
Copy link

bbugh commented Dec 19, 2021

It's been some time, was anything moved forward on generate or adding resurrecting command line arguments?

@armujahid
Copy link
Author

Linking https://github.com/eddiezane/kubectl-generate repo. Currently in WIP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.
Projects
None yet
Development

No branches or pull requests

4 participants