Skip to content

Commit

Permalink
Add LimitRange example
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrik-buchwald-sonarsource committed Dec 20, 2023
1 parent 8b8397c commit fa3146c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions rules/S6869/kubernetes/rule.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,20 @@ spec:
cpu: 0.5
----

[source,yaml]
----
apiVersion: v1
kind: LimitRange
metadata:
name: cpu-limit-range
namespace: default-cpu-example
spec:
limits:
- default:
cpu: 0.5
type: Container
----

=== How does this work?

A limit can be set through the property `resources.limits.cpu` of a
Expand Down

0 comments on commit fa3146c

Please sign in to comment.