Skip to content

Commit a467d92

Browse files
authored
Merge pull request #34939 from PriyanshuAhlawat/limitannotation
Add LimitRanger plugin to labels, taints and annotations
2 parents 140bab1 + 1f9ea55 commit a467d92

File tree

1 file changed

+14
-0
lines changed
  • content/en/docs/reference/labels-annotations-taints

1 file changed

+14
-0
lines changed

content/en/docs/reference/labels-annotations-taints/_index.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,20 @@ to the name of the namespace. You can't change this label's value.
133133
This is useful if you want to target a specific namespace with a label
134134
{{< glossary_tooltip text="selector" term_id="selector" >}}.
135135

136+
### kubernetes.io/limit-ranger
137+
138+
Example: `kubernetes.io/limit-ranger: "LimitRanger plugin set: cpu, memory request for container nginx; cpu, memory limit for container nginx"`
139+
140+
Used on: Pod
141+
142+
Kubernetes by default doesn't provide any resource limit, that means unless you explicitly define limits,
143+
your container can consume unlimited CPU and memory.
144+
You can define a default request or default limit for pods. You do this by creating a LimitRange in the relevant namespace.
145+
Pods deployed after you define a LimitRange will have these limits applied to them.
146+
The annotation `kubernetes.io/limit-ranger` records that resource defaults were specified for the Pod,
147+
and they were applied successfully.
148+
For more details, read about [LimitRanges](/docs/concepts/policy/limit-range).
149+
136150
### beta.kubernetes.io/arch (deprecated)
137151

138152
This label has been deprecated. Please use `kubernetes.io/arch` instead.

0 commit comments

Comments
 (0)