When a Task step writes relatively large content into a Task result, the output may fail due to size limits.
Pod logs show termination message overflow (result too large for default 4 KB cap):
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.
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-from and spec.pipeline.max-result-size as shown below:
The feature-flags ConfigMap will be updated automatically.
Since the results-from: sidecar-logs feature 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.