mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-06 03:33:26 +00:00
Introduce concept of a default limit
This commit is contained in:
@@ -11,7 +11,9 @@
|
||||
"id": "invalid-pod",
|
||||
"containers": [{
|
||||
"name": "kubernetes-serve-hostname",
|
||||
"image": "gcr.io/google_containers/serve_hostname"
|
||||
"image": "gcr.io/google_containers/serve_hostname",
|
||||
"cpu": 10,
|
||||
"memory": 1048576
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
@@ -24,7 +24,11 @@
|
||||
"min": {
|
||||
"memory": "1048576",
|
||||
"cpu": "0.25"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"memory": "1048576",
|
||||
"cpu": "0.25"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@@ -10,7 +10,13 @@
|
||||
"spec": {
|
||||
"containers": [{
|
||||
"name": "kubernetes-serve-hostname",
|
||||
"image": "gcr.io/google_containers/serve_hostname"
|
||||
}]
|
||||
}
|
||||
"image": "gcr.io/google_containers/serve_hostname",
|
||||
"resources": {
|
||||
"limits": {
|
||||
"cpu": "10m",
|
||||
"memory": "1Mi"
|
||||
}
|
||||
}
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
@@ -26,7 +26,11 @@
|
||||
"min": {
|
||||
"memory": "1Mi",
|
||||
"cpu": "250m"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"memory": "1Mi",
|
||||
"cpu": "250m"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user