cub run set-container-resources
cub run set-container-resources
Set resource requests and limits for a container. Mutating. Supported toolchains: Kubernetes/YAML
cub run set-container-resources [flags]
Options
--container-name string (required) Name of the container whose resources to set
--cpu string (required) Request cpu represented as a Kubernetes resource quantity, such as 500m; ignored if empty
-h, --help help for set-container-resources
--limit-factor int (required) Integer factor to multiply requests to compute limits. A factor of 0 implies no limits.
--memory string (required) Request memory represented as a Kubernetes resource quantity, such as 256Mi; ignored if empty
--operation string (required) If "all" then requests and limits will be set unconditionally; if "cap", then the values will be set if they exceed the values; if "floor", then the values will be set if they are less than the values
Options inherited from parent commands
--change-desc string change description
--changeset string changeset to associate units with
--context string The context to use for this command
--data-only show config data without other response details
--debug Debug output
--display-mutations display resource mutations
--dry-run dry run mode: execute functions but skip updating configuration data
--executor-space string Space ID or slug whose executor to use for builtin functions (org-level only)
--filter string filter to apply (slug, space/filter, or UUID)
--jq string jq expression
--json JSON output
--livestate-type string Invoke the function on the live state and use the flag value as the toolchain type for live state.
--output-jq string apply jq to output JSON
--output-only show output without other response details
--quiet No output
--resource-type string resource-type filter
--space string space ID to perform command on
--toolchain string Toolchain type for the function invocations (default "Kubernetes/YAML")
--unit strings target specific units by slug or UUID (can be repeated or comma-separated)
--wait wait for completion
--where string where filter
--where-data string where data filter
--where-resource string filter which resources the function operates on
--worker string worker to execute the function
--yaml YAML output
--yq string yq expression
SEE ALSO
- cub run - invoke a function