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

service create with cpu requests and limits #50

Closed
csantanapr opened this issue Apr 2, 2019 · 9 comments
Closed

service create with cpu requests and limits #50

csantanapr opened this issue Apr 2, 2019 · 9 comments
Milestone

Comments

@csantanapr
Copy link
Member

No description provided.

@csantanapr
Copy link
Member Author

/milestone v0.1.0

@knative-prow-robot
Copy link
Contributor

@csantanapr: You must be a member of the knative/knative-milestone-maintainers github team to set the milestone.

In response to this:

/milestone v0.1.0

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@csantanapr csantanapr added this to the v0.1.0 milestone Apr 5, 2019
@maximilien
Copy link
Contributor

maximilien commented Apr 12, 2019

What does this look like? I suggest:

# specifying value as millicore
$kn service create --cpu-requests 50m --cpu-limits 75m

or

# specifying value as fraction
$kn service create --cpu-requests 0.5 --cpu-limits .1

Working on this based on above assumption as specified here

@rhuss
Copy link
Contributor

rhuss commented Apr 12, 2019

I would turn it around (as in --requests-cpu) as imo one should also add --requests-memory as well for the resource restrictions, so reflect the hierarchy like in resources spec itself.

BTW, any reason why memory was not included for this feature request ?

@navidshaikh
Copy link
Collaborator

navidshaikh commented Apr 12, 2019

I agree with @rhuss for --requests-cpu, --limits-cpu, --requests-memory and --limits-memory.

Regarding the unit of resources, I think we should support both as described here.

@maximilien
Copy link
Contributor

OK makes sense @rhuss and @navidshaikh. Let me see if I can push something soon. Back at it this week so hopefully no more distractions. Best.

@evankanderson
Copy link
Member

evankanderson commented Apr 22, 2019 via email

@maximilien
Copy link
Contributor

All, this is addressed in PR #81. I suggest we close unless something is missing. And if what is missing is "small change" to current implementation, just open a separate issue and I will address it.

@sixolet
Copy link
Contributor

sixolet commented May 14, 2019

Done by #81

@sixolet sixolet closed this as completed May 14, 2019
coryrc pushed a commit to coryrc/client that referenced this issue May 14, 2020
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

7 participants