Kubernetes offers a variety of features that can help you control how resources are allocated in your cluster. This lab will allow you to build your experience with some of these features by solving problems that might arise in a real-world cluster.
Successfully complete this lab by achieving the following learning objectives:
- Configure Resource Requests for a Deployment
There is a Deployment called
Add resource requests to this Deployment’s containers. The container should request
- Configure Resource Limits for a Deployment
Add resource limits to the Deployment called
For the containers in this Deployment, the limits should be
256Mifor memory and
- Create a ResourceQuota for a Namespace
Use a quota to limit the resources that can be used in the
The quota should allow total resource requests in the Namespace up to
1Gifor memory and
For resource limits, the quota should allow up to
2Gifor memory and
Note: The ResourceQuota admission controller is already enabled in the environment. You do not need to enable it.