Skip to content

Commit

Permalink
Merge pull request #44861 from suhasadhav/patch-1
Browse files Browse the repository at this point in the history
Mention how requests are inferred from limits
  • Loading branch information
k8s-ci-robot committed Jun 13, 2024
2 parents 86a76b4 + 4ddb452 commit 450e619
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content/en/docs/concepts/scheduling-eviction/pod-overhead.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ spec:
memory: 100Mi
```

{{< note >}}
If only `limits` are specified in the pod definition, kubelet will deduce `requests` from those limits and set them to be the same as the defined `limits`.
{{< /note >}}

At admission time the RuntimeClass [admission controller](/docs/reference/access-authn-authz/admission-controllers/)
updates the workload's PodSpec to include the `overhead` as described in the RuntimeClass. If the PodSpec already has this field defined,
the Pod will be rejected. In the given example, since only the RuntimeClass name is specified, the admission controller mutates the Pod
Expand Down

0 comments on commit 450e619

Please sign in to comment.