'why tekton execution unit is pod, not a container?

Currently I am using Jenkins on kubernetes and wanted to migrate to tekton because trying achieve CI steps as a code (similar to Helm chart for CD steps). Just wondering about Tekton architecture -

why every task creates different pod rather than creating different containers in a single pod. Creating multiples pod leads resources locking as every pod will hold cpus/memory (default) till pod receives SIGTERM.



Solution 1:[1]

Just wondering about Tekton architecture - why every task creates different pod rather than creating different containers in a single pod?

This is a design choice that was made early in the project. They want Tasks to be a reusable component with, e.g. parameters and results.

But you are right that it leads to problems when it comes to resource allocation. There are on-going work for executing a whole Pipeline within a single Pod, see Tekton Enhancement Proposal 44

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jonas