Difference between revisions of "Pod eviction"
Jump to navigation
Jump to search
(Created page with "https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/") |
|||
| Line 1: | Line 1: | ||
https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/ | https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/ | ||
| + | |||
| + | # Quotas | ||
| + | |||
| + | https://docs.openshift.com/dedicated/3/dev_guide/compute_resources.html | ||
| + | ``` | ||
| + | apiVersion: v1 | ||
| + | kind: ResourceQuota | ||
| + | metadata: | ||
| + | name: compute-resources | ||
| + | spec: | ||
| + | hard: | ||
| + | pods: "4" | ||
| + | requests.cpu: "1" | ||
| + | requests.memory: 1Gi | ||
| + | requests.ephemeral-storage: 2Gi | ||
| + | limits.cpu: "2" | ||
| + | limits.memory: 2Gi | ||
| + | limits.ephemeral-storage: 4Gi | ||
| + | ``` | ||
Revision as of 16:56, 4 May 2022
https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/
Quotas
https://docs.openshift.com/dedicated/3/dev_guide/compute_resources.html
apiVersion: v1
kind: ResourceQuota
metadata:
name: compute-resources
spec:
hard:
pods: "4"
requests.cpu: "1"
requests.memory: 1Gi
requests.ephemeral-storage: 2Gi
limits.cpu: "2"
limits.memory: 2Gi
limits.ephemeral-storage: 4Gi