Allocating Insufficient Resource than the Actual Usage
In this lesson, we will explore what happens when we allocate insufficient resource than the actual usage of an application.
Allocating Insufficient Memory
Let’s take a look at a slightly modified version of the go-demo-2 definition.
cat res/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 output, limited to the relevant parts, is as follows.
apiVersion: apps/v1beta2kind: Deploymentmetadata:name: go-demo-2-dbspec:...template:...spec:containers:- name: dbimage: mongo:3.3resources:limits:memory: 10Micpu: 0.5requests:memory: 5Micpu: 0.3
The memory limit is set to 10Mi and the request ...
Access this course and 1500+ top-rated courses and projects.