Skip to content

Commit

Permalink
Introduce ephemeral-storage quotas. Set limits to values in KB article
Browse files Browse the repository at this point in the history
  • Loading branch information
bastjan committed Sep 22, 2021
1 parent 0e51ada commit 27c0ab1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
13 changes: 11 additions & 2 deletions class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,18 @@ parameters:
requests.memory: 3Gi
limits.cpu: 4000m
limits.memory: 6Gi
requests.storage: 50Gi
persistentvolumeclaims: "50"
count/configmaps: "150"
count/secrets: "150"
count/services: "20"
openshift.io/imagestreams: "20"
openshift.io/imagestreamtags: "50"

requests.storage: 50Gi
persistentvolumeclaims: "10"
localblock-storage.storageclass.storage.k8s.io/persistentvolumeclaims: "0"
requests.ephemeral-storage: "250Mi"
limits.ephemeral-storage: "500Mi"

scopes: []
scopeSelector:

Expand All @@ -61,12 +66,16 @@ parameters:
max:
cpu: "1"
memory: "4G"
ephemeral-storage: "500Mi"
min:
cpu: "10m"
memory: "4Mi"
ephemeral-storage: "100Ki"
default:
cpu: "200m"
memory: "200Mi"
ephemeral-storage: "10Mi"
defaultRequest:
cpu: "100m"
memory: "100Mi"
ephemeral-storage: "5Mi"
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,19 @@ spec:
limits:
- default:
cpu: 200m
ephemeral-storage: 10Mi
memory: 200Mi
defaultRequest:
cpu: 100m
ephemeral-storage: 5Mi
memory: 100Mi
max:
cpu: '1'
ephemeral-storage: 500Mi
memory: 4G
min:
cpu: 10m
ephemeral-storage: 100Ki
memory: 4Mi
type: Container
kind: LimitRange
Expand All @@ -49,11 +53,14 @@ spec:
count/secrets: '150'
count/services: '20'
limits.cpu: 4000m
limits.ephemeral-storage: 500Mi
limits.memory: 6Gi
localblock-storage.storageclass.storage.k8s.io/persistentvolumeclaims: '0'
openshift.io/imagestreams: '20'
openshift.io/imagestreamtags: '50'
persistentvolumeclaims: '50'
persistentvolumeclaims: '10'
requests.cpu: 2000m
requests.ephemeral-storage: 250Mi
requests.memory: 3Gi
requests.storage: 50Gi
scopeSelector: null
Expand Down

0 comments on commit 27c0ab1

Please sign in to comment.