Merge pull request #746 from mattnworb/yaml-spacing
replace tabs in yaml snippets with spaces
This commit is contained in:
commit
d08e5a67b6
|
|
@ -57,37 +57,37 @@ Examples:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
containers:
|
containers:
|
||||||
name: foo
|
name: foo
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
name: bar
|
name: bar
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
```
|
```
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
containers:
|
containers:
|
||||||
name: foo
|
name: foo
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
|
|
||||||
name: bar
|
name: bar
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 100Mi
|
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**.
|
- 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
|
```yaml
|
||||||
containers:
|
containers:
|
||||||
name: foo
|
name: foo
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
|
|
||||||
name: bar
|
name: bar
|
||||||
```
|
```
|
||||||
|
|
||||||
Container `foo` and `bar` have limits set for different resources.
|
Container `foo` and `bar` have limits set for different resources.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
containers:
|
containers:
|
||||||
name: foo
|
name: foo
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
|
|
||||||
name: bar
|
name: bar
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
```
|
```
|
||||||
|
|
||||||
Container `foo` has no limits set, and `bar` has neither requests nor limits specified.
|
Container `foo` has no limits set, and `bar` has neither requests nor limits specified.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
containers:
|
containers:
|
||||||
name: foo
|
name: foo
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 1Gi
|
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**.
|
- 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
|
```yaml
|
||||||
containers:
|
containers:
|
||||||
name: foo
|
name: foo
|
||||||
resources:
|
resources:
|
||||||
name: bar
|
name: bar
|
||||||
resources:
|
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.
|
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.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue