Available presets

Function's resources and replicas as well as resources for image-building Jobs are based on presets. A preset is a predefined group of values. There are two groups of presets defined for a Function CR and include the presents for:

  • Function's resources
  • Image-building Job's resources

Configuration

To add a new preset to the Serverless configuration for the defaulting webhook to set it on all Function CRs, update the values.yaml file in the Serverless chart. To do it, change the configuration for the webhook.values.function.resources.presets or webhook.values.buildJob.resources.presets parameters. Read the Serverless chart configuration to find out more.

Usage

If you want to apply values from a preset to a single Function, override the existing values for a given preset in the Function CR. To do it, first remove the relevant fields from the Function CR and then add the relevant preset labels. For example, to modify the default values for buildResources, remove all its entries from the Function CR and add an appropriate serverless.kyma-project.io/build-resources-preset: {PRESET} label to the Function CR.

Function's resources

PresetRequest CPURequest memoryLimit CPULimit memory
XS50m64Mi100m128Mi
S100m128Mi200m256Mi
M200m256Mi400m512Mi
L400m512Mi800m1024Mi
XL800m1024Mi1600m2048Mi

To apply values ​​from a given preset, use the serverless.kyma-project.io/function-resources-preset: {PRESET} label in the Function CR.

Build Job's resources

PresetRequest CPURequest memoryLimit CPULimit memory
local-dev200m200Mi400m400Mi
slow200m200Mi700m700Mi
normal700m700Mi1100m1100Mi
fast1100m1100Mi1700m1100Mi

To apply values ​​from a given preset, use the serverless.kyma-project.io/build-resources-preset: {PRESET} label in the Function CR.