diff options
| author | Brian Grant <bgrant0607@users.noreply.github.com> | 2017-06-20 23:54:50 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-20 23:54:50 -0700 |
| commit | d08e5a67b6cbd544b74c2ca8d3ad4d9ff18f81bf (patch) | |
| tree | 69c915a011532a2f80cb9dfa8a67577e26567c53 | |
| parent | 918d9bff011227a8574cc67a2ace769f8788cc6c (diff) | |
| parent | 351d014aea85ca5edf4c644143c23f4a7ea3b3d9 (diff) | |
Merge pull request #746 from mattnworb/yaml-spacing
replace tabs in yaml snippets with spaces
| -rw-r--r-- | contributors/design-proposals/resource-qos.md | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/contributors/design-proposals/resource-qos.md b/contributors/design-proposals/resource-qos.md index 55962158..13ad0bd4 100644 --- a/contributors/design-proposals/resource-qos.md +++ b/contributors/design-proposals/resource-qos.md @@ -57,37 +57,37 @@ Examples: ```yaml containers: - name: foo - resources: - limits: - cpu: 10m - memory: 1Gi - name: bar - resources: - limits: - cpu: 100m - memory: 100Mi + name: foo + resources: + limits: + cpu: 10m + memory: 1Gi + name: bar + resources: + limits: + cpu: 100m + memory: 100Mi ``` ```yaml containers: - name: foo - resources: - limits: - cpu: 10m - memory: 1Gi - requests: - cpu: 10m - memory: 1Gi - - name: bar - resources: - limits: - cpu: 100m - memory: 100Mi - requests: - cpu: 100m - memory: 100Mi + name: foo + resources: + limits: + cpu: 10m + memory: 1Gi + requests: + cpu: 10m + memory: 1Gi + + name: bar + resources: + limits: + cpu: 100m + memory: 100Mi + requests: + cpu: 100m + memory: 100Mi ``` - If `requests` and optionally `limits` are set (not equal to `0`) for one or more resources across one or more containers, and they are *not equal*, then the pod is classified as **Burstable**. @@ -99,44 +99,44 @@ Container `bar` has not resources specified. ```yaml containers: - name: foo - resources: - limits: - cpu: 10m - memory: 1Gi - requests: - cpu: 10m - memory: 1Gi - - name: bar + name: foo + resources: + limits: + cpu: 10m + memory: 1Gi + requests: + cpu: 10m + memory: 1Gi + + name: bar ``` Container `foo` and `bar` have limits set for different resources. ```yaml containers: - name: foo - resources: - limits: - memory: 1Gi - - name: bar - resources: - limits: - cpu: 100m + name: foo + resources: + limits: + memory: 1Gi + + name: bar + resources: + limits: + cpu: 100m ``` Container `foo` has no limits set, and `bar` has neither requests nor limits specified. ```yaml containers: - name: foo - resources: - requests: - cpu: 10m - memory: 1Gi + name: foo + resources: + requests: + cpu: 10m + memory: 1Gi - name: bar + name: bar ``` - If `requests` and `limits` are not set for all of the resources, across all containers, then the pod is classified as **Best-Effort**. @@ -145,10 +145,10 @@ Examples: ```yaml containers: - name: foo - resources: - name: bar - resources: + name: foo + resources: + name: bar + resources: ``` Pods will not be killed if CPU guarantees cannot be met (for example if system tasks or daemons take up lots of CPU), they will be temporarily throttled. |
