refactor communishift docs
Signed-off-by: Mark O Brien <markobri@redhat.com>
This commit is contained in:
parent
68af41d4d6
commit
d1d634f78b
1 changed files with 35 additions and 37 deletions
|
@ -21,44 +21,42 @@ that gets created (properly tagged) for community users.
|
||||||
|
|
||||||
Limits can go from storage, memory and cpu usage to the amount of objects (limit the namespace to have a max. of 5 secrets for example).
|
Limits can go from storage, memory and cpu usage to the amount of objects (limit the namespace to have a max. of 5 secrets for example).
|
||||||
|
|
||||||
Sample object definition:
|
Sample object definition::
|
||||||
|
|
||||||
.. codeblock:: python
|
apiVersion: v1
|
||||||
|
kind: ResourceQuota
|
||||||
apiVersion: v1
|
metadata:
|
||||||
kind: ResourceQuota
|
name: app-quota
|
||||||
metadata:
|
spec:
|
||||||
name: app-quota
|
hard:
|
||||||
spec:
|
# compute
|
||||||
hard:
|
cpu: "1" # requests.cpu
|
||||||
# compute
|
memory: "1Gi" # requests.memory
|
||||||
cpu: "1" # requests.cpu
|
ephemeral-storage: "10Gi" # requests.ephemeral-storage
|
||||||
memory: "1Gi" # requests.memory
|
limits.cpu: "2"
|
||||||
ephemeral-storage: "10Gi" # requests.ephemeral-storage
|
limits.memory: "2Gi"
|
||||||
limits.cpu: "2"
|
limits.ephemeral-storage: "10Gi"
|
||||||
limits.memory: "2Gi"
|
# storage
|
||||||
limits.ephemeral-storage: "10Gi"
|
requests.storage: "10Gi"
|
||||||
# storage
|
persistentvolumeclaims: "1"
|
||||||
requests.storage: "10Gi"
|
# <storage-class-name>.storageclass.storage.k8s.io/requests.storage
|
||||||
persistentvolumeclaims: "1"
|
# <storage-class-name>.storageclass.storage.k8s.io/persistentvolumeclaims
|
||||||
# <storage-class-name>.storageclass.storage.k8s.io/requests.storage
|
# object counts
|
||||||
# <storage-class-name>.storageclass.storage.k8s.io/persistentvolumeclaims
|
pods: "1"
|
||||||
# object counts
|
replicationcontrollers: 1
|
||||||
pods: "1"
|
# resourcequotas: 1
|
||||||
replicationcontrollers: 1
|
# services: 1
|
||||||
# resourcequotas: 1
|
# services.loadbalancers: 1
|
||||||
# services: 1
|
# services.nodeports: 1
|
||||||
# services.loadbalancers: 1
|
# secrets: 1
|
||||||
# services.nodeports: 1
|
# configmaps: 1
|
||||||
# secrets: 1
|
# openshift.io/imagestreams: 1
|
||||||
# configmaps: 1
|
# scopes:
|
||||||
# openshift.io/imagestreams: 1
|
# https://docs.openshift.com/container-platform/4.6/applications/quotas/quotas-setting-per-project.html#quotas-scopes_quotas-setting-per-project
|
||||||
# scopes:
|
# - Terminating
|
||||||
# https://docs.openshift.com/container-platform/4.6/applications/quotas/quotas-setting-per-project.html#quotas-scopes_quotas-setting-per-project
|
# - NotTerminating
|
||||||
# - Terminating
|
# - BestEffort
|
||||||
# - NotTerminating
|
# - NotBestEffort
|
||||||
# - BestEffort
|
|
||||||
# - NotBestEffort
|
|
||||||
|
|
||||||
Conclusion
|
Conclusion
|
||||||
----------
|
----------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue