mirror of
https://github.com/google/nomulus
synced 2026-02-05 12:31:15 +00:00
Missing resource requests as well as metrics for when to evict resource produced situation when under load k8s struggled to assign pods. This adds default resource requirements based on 2 weeks metrics and instructions when resource should be evicted.
15 lines
236 B
YAML
15 lines
236 B
YAML
apiVersion: v1
|
|
kind: LimitRange
|
|
metadata:
|
|
name: resource-limits
|
|
namespace: default
|
|
spec:
|
|
limits:
|
|
- type: Container
|
|
default:
|
|
cpu: "300m"
|
|
memory: "512Mi"
|
|
defaultRequest:
|
|
cpu: "100m"
|
|
memory: "350Mi"
|