File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "id" : " require-resources" ,
3+ "description" : " Require CPU/memory requests and limits" ,
4+ "kind" : " Pod, Deployment" ,
5+ "match" : " spec.containers[*].resources" ,
6+ "pattern" : " null" ,
7+ "required" : true ,
8+ "severity" : " error" ,
9+ "message" : " Containers must define both requests and limits for CPU and memory" ,
10+ "fix" : {
11+ "action" : " insert" ,
12+ "value" : {
13+ "resources" : {
14+ "limits" : {
15+ "cpu" : " 250m" ,
16+ "memory" : " 256Mi"
17+ },
18+ "requests" : {
19+ "cpu" : " 100m" ,
20+ "memory" : " 128Mi"
21+ }
22+ }
23+ },
24+ "hint" : " Add resource requests and limits to the container (example defaults)"
25+ },
26+ "explain" : {
27+ "rationale" : " https://github.com/sajal-n/guardon" ,
28+ "refs" : [
29+ " https://github.com/sajal-n/guardon"
30+ ]
31+ }
32+ }
You can’t perform that action at this time.
0 commit comments