Result Limit Exceeded When Writing Tekton Task Results
Problem Description
When a Task step writes relatively large content into a Task result, the output may fail due to size limits.
Error Manifestation
-
Pod logs show termination message overflow (result too large for default 4 KB cap):
Root Cause Analysis
By default, Tekton Pipelines captures Task results through the container termination message, which Kubernetes limits to 4 KB. This effectively caps a single Task's usable result size to 4096 bytes.
To lift that ceiling, Tekton supports reading results from sidecar logs, where a configurable max-result-size is applied per result.
Troubleshooting
The following instructions assume that you have installed Tekton Pipeline into the tekton-pipelines namespace by default.
If you have installed it into a different namespace, please replace tekton-pipelines with your namespace.
Following are the steps to configure the result size limit:
-
Edit the TektonConfig resource by setting
spec.pipeline.results-fromandspec.pipeline.max-result-sizeas shown below: -
The
feature-flagsConfigMap will be updated automatically. -
Since the
results-from: sidecar-logsfeature is enabled, you need to configure log access permissions for the controller:Technical Note: This configuration allows the controller to retrieve results information from pod logs. For detailed information, please refer to the Tekton official documentation.
-
No manual component restarts are required, changes will take effect automatically.