I'm using AWS EKS with fargate, in my deployment, I set the resources.requests.memory to 512 Mi, but the fargate node will still request 1Gi. So I looking the prometheus kube states for that pod, it show that pod request 762 Mi. Because 762-512=250, so I was checked other deployments, found that it always request memory more than I defined about 200 Mi. Is this a k8s issue, or just a fargate rule?
resources:
limits:
memory: 512Mi
cpu: "0.25"
requests:
memory: 512Mi
cpu: "0.25"
Annotations: CapacityProvisioned: 0.25vCPU 1GB
Memory Request: 762 Mi
After update requests to 250 Mi:
resources:
limits:
memory: 500Mi
cpu: "0.25"
requests:
memory: 250Mi
cpu: "0.25"
Annotations: CapacityProvisioned: 0.25vCPU 0.5GB