-
Notifications
You must be signed in to change notification settings - Fork 146
NewResourceCPUIsolator/NewResourceMemoryIsolator fails if 'request' or 'limit' is empty #562
Comments
@jonboulle Jumped in the rkt code, seems for now only the Limit is being used? https://github.com/coreos/rkt/blob/master/stage1/init/common/pod.go#L336-L342 IMO, the desired experience would be this kubernetes/kubernetes#14173 I can fix in the rktnetes code for now. |
@yifan-gu Exact, rkt only use the Limit now... It is not clear to me what is the semantic of Limit and Request. For example, with CPUShares, the value is relative to the values of other containers in the same slice. It does not really match the explanation given in the resource/cpu documentation. Kubernetes seems to only care about the cpu "limit" (relative weight) and not the cpu "request" (unused): |
@alban in rkt we use CPUQuota, not CPUShares:
|
@yifan-gu I am not really sure what you want here - new constructors? e.g. |
@jonboulle @alban We don't need to change the name or signature of the function. Do you think #566 is reasonable? |
@sjpotter This is the cause of the errors when creating a pod that has only request or limit.
Not sure we should fix this in the spec or in rktnetes.
cc @jonboulle
The text was updated successfully, but these errors were encountered: