Can we create CPU pools and assign pods to the pool?

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version: 1.18
Cloud being used: Azure
Installation method: az
Host OS: Ubuntu 18.04
CNI and version: Azure
CRI and version: Docker

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.

Any inputs?

Requirement is, In a cluster with 10 CPU cores, i need to allocate 6 cores to application A (multiple pods) and 4 cores to application B (Multiple pods). Any pods labelled as appA should use CPU from 6 core pool and appB from 4 core pool.

[esudheere] esudheere https://discuss.kubernetes.io/u/esudheere
February 25

Any inputs?

Sorry, there wasn’t any clear question before.

Requirement is, In a cluster with 10 CPU cores, i need to allocate 6
cores to application A (multiple pods) and 4 cores to application B
(Multiple pods). Any pods labelled as appA should use CPU from 6 core
pool and appB from 4 core pool.

Yes, see the docs for node selectors.

Nodeselector wont be helpful i think
nodeA - total CPU core - 5
nodeB - total CPU core - 5

Requirement is,
appA pods should only use 6 cores
appB pods should use only 4 cores

Use quota and 2 different namespaces?

Quota needs, requests and limits to be set for each pod. So the pod can not utilize the full pool capacity.

Use a LimitRanger in the namespaces to assign default values? Or require your users to set pod limits? Especially for mory, you want that anyway.