The Mismatch Scenario
Explore what happens when a namespace's defined limits are violated.
We'll cover the following...
Let’s see what happens when resources are defined but they do not match the namespace min
and max
limits.
Looking into the definition
We’ll use the same go-demo-2.yml
that we used before. The output, (limited to the relevant parts) is as follows.
Press + to interact
...apiVersion: apps/v1kind: Deploymentmetadata:name: go-demo-2-dbspec:...template:...spec:containers:- name: dbimage: mongo:3.3resources:limits:memory: 100Micpu: 0.1requests:memory: 50Micpu: 0.01...apiVersion: apps/v1kind: Deploymentmetadata:name: go-demo-2-apispec:...template:...spec:containers:- name: api...resources:limits:memory: 10Micpu: 0.1requests:memory: 5Micpu: 0.01...
In this output, the resources for both Deployments are defined.
Creating resources
Let’s create the objects and retrieve the ...