mirror of
https://github.com/truenas/charts.git
synced 2026-06-18 01:26:53 +08:00
43 lines
778 B
Markdown
43 lines
778 B
Markdown
# Resources
|
|
|
|
## Key: resources
|
|
|
|
- Type: `dict`
|
|
- Default:
|
|
|
|
```yaml
|
|
resources:
|
|
limits:
|
|
cpu: 4000m
|
|
memory: 8Gi
|
|
requests:
|
|
cpu: 10m
|
|
memory: 50Mi
|
|
```
|
|
|
|
- Helm Template: ❌
|
|
|
|
`requests` is used by the scheduler to decide if the node has enough
|
|
resources for the pod. Can be useful when multi node clusters are used.
|
|
Currently set to a very low value, so a pod can always be scheduled on
|
|
the single node.
|
|
|
|
`limits` is used to actually limit resources to a container. By default
|
|
is set to 4 cpu and 8GiB RAM.
|
|
|
|
Examples:
|
|
|
|
```yaml
|
|
resources:
|
|
limits:
|
|
cpu: 8000m
|
|
memory: 16Gi
|
|
requests:
|
|
cpu: 10m
|
|
memory: 50Mi
|
|
```
|
|
|
|
Kubernetes Documentation:
|
|
|
|
- [Resources](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers)
|