As I know, containers in a pod don't have a sequence for start or stop. But how does Tekton achieve this? I can search the result in the doc "The order in which the Steps appear in this list is the order in which they will execute." Anyone can tell how it works?
Asked
Active
Viewed 503 times
1 Answers
0
When a user writes a Task, he declares the steps with image and command. These commands are overwritten by Tekton to use a Tekton specific entrypoint binary. The entrypoint binary has signalling functinality and communicate with the other steps, such that they are executed in order.
The Entrypoint binary does:
- Overwrites the user's specified
command
+args
- The original
command
+args
are passed as input to the Entrypoint binary - Wait for signal to start and then run users
command
+args
- When its done, signal the next step.
The presentation Extending Containers with Nested Processes explains how this works for Tekton.

Jonas
- 121,568
- 97
- 310
- 388