Table of contents
No headings in the article.
As a Kubernetes administrator, you need to ensure that your Kubernetes cluster
and its associated namespaces are configured to provide fair and equitable access to compute resources
. This is especially important if you have a large number of users and workloads running on the cluster.
Using Kubernetes Resource Quotas
and LimitRanges
, you can ensure that each workload running on the cluster is allocated a fair share of the cluster resources
.
Resource Quotas
can be used to limit the amount of CPU and memory resources allocated to a namespace, ensuring that no single namespace consumes more than its fair share. Resource Quotas can also be used to limit the amount of persistent storage within a namespace.
LimitRanges
provide a more granular approach to resource allocation within a namespace. They provide the ability to set specific limits for individual objects (such as Pods and PersistentVolumeClaims).
For example, you can set a LimitRange within a namespace
to ensure that no individual
Pod can consume more than a certain amount of CPU or memory
. This ensures that no single Pod can monopolize all the available resources within its namespace.
You can also set a LimitRange to ensure that no PersistentVolumeClaim within a namespace can request more than a certain amount of storage. This is useful if you want to ensure that no single namespace user can consume all the available storage resources within a namespace.
Using Kubernetes Resource Quotas and LimitRanges, you can ensure that your Kubernetes cluster is configured to provide fair and equitable access to compute resources. This is especially important if you have a large number of users and workloads running on the cluster.
Made with ❤️ by Pratikkumar Panchal. github.com/m3pratik/31daysofEKS