Configuring Resource Quotas for Pipeline Components
TOC
Overview
Configure resource quotas related to the Pipeline component.
Use Cases
- Adjust the resource quotas for the Pipeline component
- Set default resource quotas for init-containers and containers created by TaskRun
Prerequisites
- The Tekton Operator component must be installed
- TektonConfig resources must have been automatically created in the environment
- The document on Adjusting Optional Configuration Items for Subcomponents should be read
Resource Configuration Guidelines
Before configuring resource quotas:
- Assess your cluster's available resources and capacity
- Consider your workload characteristics and performance requirements
- Start with conservative values and adjust based on monitoring data
- Test configurations in non-production environments first
Steps
Step 1
Edit the TektonConfig resource
Step 2
WARNING
Modifying the configuration may trigger a rolling update of the component Pods, which could lead to temporary service unavailability. Please execute this at an appropriate time.
Example of modifying the spec.pipeline.options.deployments configuration:
Step 3
Submit the configuration and wait for the Pods to update.
Operation Result
You can see that the resource quota configurations for the Pipeline related components are effective.
Verifying Pod Resource Quota Configuration
Create a TaskRun
Wait for the TaskRun to Complete
View the Pod Resource Quota Configuration
You can see that the resource quota for the initContainers container prepare in the Pod matches the resource quotas configured in the config-defaults ConfigMap.