Skip to content

Commit

Permalink
Merge pull request kyverno#1329 from hubwoop/main
Browse files Browse the repository at this point in the history
adds cpu limit to pod requests limits example
  • Loading branch information
JimBugwadia authored Dec 1, 2020
2 parents 370828a + c3d204a commit 1c73dd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/RequirePodRequestsLimits.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Require pod resource requests and limits

Application workloads share cluster resources. Hence, it is important to manage resources assigned to each pod. It is recommended that `resources.requests` and `resources.limits` are configured per pod and include CPU and memory resources. Other resources such as GPUs may also be specified as needed.
Application workloads share cluster resources. Hence, it is important to manage resources assigned to each pod. It is recommended that `resources.requests.cpu`, `resources.requests.memory` and `resources.limits.memory` are configured per pod. Other resources such as GPUs may also be specified as needed.

If a namespace level request or limit is specified, defaults will automatically be applied to each pod based on the `LimitRange` configuration.

Expand Down
2 changes: 1 addition & 1 deletion samples/best_practices/require_pod_requests_limits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
policies.kyverno.io/category: Workload Management
policies.kyverno.io/description: As application workloads share cluster resources, it is important
to limit resources requested and consumed by each pod. It is recommended to require
'resources.requests' and 'resources.limits' per pod. If a namespace level request or limit is
'resources.requests' and 'resources.limits.memory' per pod. If a namespace level request or limit is
specified, defaults will automatically be applied to each pod based on the 'LimitRange' configuration.
spec:
validationFailureAction: audit
Expand Down

0 comments on commit 1c73dd9

Please sign in to comment.