Allocating Insufficient Resource than the Actual Usage
Explore the consequences of allocating fewer memory resources than an application actually uses in Kubernetes. Understand how Kubernetes detects excessive memory usage, enforces memory limits, and handles pod termination and restarts. This lesson helps you diagnose resource allocation issues and manage container memory effectively to maintain application stability.
We'll cover the following...
We'll cover the following...
Allocating Insufficient Resources
Let’s look at a slightly modified version of the go-demo-2 definition as go-demo-2-insuf-mem.yml. When compared with the previous definition, the difference is only in resources of the db container in the go-demo-2-db Deployment.
The memory limit is set to 20Mi and the request to 10Mi. Since we already know from Metrics Server’s data that MongoDB ...