Configuring ResourceQuota and Limit at the namespace level
In this section, we're going to discover that namespaces can not only be used to sort resources in a cluster but also to limit the computing resources that Pods can access.
Using ResourceQuota and Limits
with namespaces, you can create limits regarding the computing resources your Pods can access. We're going to learn how to proceed and exactly how to use these new concepts. In general, defining ResourceQuota and Limits
is considered good practice for production clusters – that's why you should use them wisely.
Understanding why you should set ResourceQuota
Just like applications or systems, Kubernetes Pods will require a certain amount of computing resources to work properly. In Kubernetes, you can configure two types of computing resources:
- CPU
- Memory
All your worker nodes work together to provide CPU and memory, and in Kubernetes, adding more CPU and memory simply consists...