mirror of
https://github.com/truenas/charts.git
synced 2026-06-16 15:08:11 +08:00
1.6 KiB
1.6 KiB
Resources
Key: resources
Info:
-
Type:
dict -
Default:
resources: limits: cpu: 4000m memory: 8Gi requests: cpu: 10m memory: 50Mi -
Helm Template: ❌
Can be defined in:
.Values.resources.Values.additionalContainers.[container-name].resources.Values.initContainers.[container-name].resources.Values.installContainers.[container-name].resources.Values.upgradeContainers.[container-name].resources.Values.systemContainers.[container-name].resources.Values.jobs.[job-name].podSpec.containers.[container-name].[container-name].resources
When no resources are defined on a Chart, library will use the
.Values.global.defaults.resources
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.
You can define only what you want to change, and the rest will be pulled from defaults.
Note:
requestscannot be empty.
Examples:
resources:
limits:
cpu: 8000m
memory: 16Gi
requests:
cpu: 10m
memory: 50Mi
# The bellow will only alter the limits.cpu.
# Rest will be pulled from global defaults
resources:
limits:
cpu: 2000m
# If you want to remove a limit
resources:
limits:
cpu: ""
Kubernetes Documentation: