简体   繁体   中英

Kubernetes resource reservation per namespace

How can I reserved resources to a namespace?

Example: I want to guarantee that one namespace cannot allocate all the resources on the cluster.

Example: Having namespace A and B and a Cluster that can have 100 pods. How can I make sure that the pod A can schedule at least 10 pods, even if we have 200 users trying to create pods on namespace B. (Typical resource segregation)

I would expect something like in Yarn where I can say leave 10% of the cluster resources to queue A.

Namespace resource quota won't do this for you. Try to explore: http://yunikorn.apache.org/ . More specifically the min/max capacity model: http://yunikorn.apache.org/docs/next/get_started/core_features#hierarchy-resource-queues .

Resource quotas are a tool for administrators to address this. Users create resources (pods, services, etc.) in the namespace, and the quota system tracks usage to ensure it does not exceed hard resource limits defined in a ResourceQuota

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM