Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
dbe4d429
Commit
dbe4d429
authored
Apr 01, 2015
by
derekwaynecarr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update design doc for limit range change
parent
c2b67051
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
admission_control_limit_range.md
docs/design/admission_control_limit_range.md
+16
-6
No files found.
docs/design/admission_control_limit_range.md
View file @
dbe4d429
...
...
@@ -25,6 +25,8 @@ type LimitRangeItem struct {
Max
ResourceList
`json:"max,omitempty"`
// Min usage constraints on this kind by resource name
Min
ResourceList
`json:"min,omitempty"`
// Default usage constraints on this kind by resource name
Default
ResourceList
`json:"default,omitempty"`
}
// LimitRangeSpec defines a min/max usage limit for resources that match on kind
...
...
@@ -74,6 +76,14 @@ The following min/max limits are imposed:
| cpu | Min/Max amount of cpu per pod |
| memory | Min/Max amount of memory per pod |
If a resource specifies a default value, it may get applied on the incoming resource. For example, if a default
value is provided for container cpu, it is set on the incoming container if and only if the incoming container
does not specify a resource requirements limit field.
If a resource specifies a min value, it may get applied on the incoming resource. For example, if a min
value is provided for container cpu, it is set on the incoming container if and only if the incoming container does
not specify a resource requirements requests field.
If the incoming object would cause a violation of the enumerated constraints, the request is denied with a set of
messages explaining what constraints were the source of the denial.
...
...
@@ -105,12 +115,12 @@ NAME
limits
$ kubectl describe limits limits
Name: limits
Type Resource Min Max
---- -------- --- ---
Pod memory 1Mi 1Gi
Pod cpu 250m 2
Container memory 1Mi 1Gi
Container cpu 250m 2
Type Resource Min Max
Default
---- -------- --- ---
---
Pod memory 1Mi 1Gi
-
Pod cpu 250m 2
-
Container memory 1Mi 1Gi
1Mi
Container cpu 250m 2
50m 250m
```
## Future Enhancements: Define limits for a particular pod or container.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment