Tekton Operations: Difference between revisions
Jump to navigation
Jump to search
(8 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
The installation will create a <code>tekton-pipelines</code> namespace. | The installation will create a <code>tekton-pipelines</code> namespace. | ||
<font color=darkkhaki>TO PROCESS: https://tekton.dev/docs/pipelines/install/</font> | |||
=Tekton CLI= | =Tekton CLI= | ||
{{Internal|Tekton_CLI#Overview|Tekton CLI}} | |||
==Tekton CLI Installation== | ==Tekton CLI Installation== | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
Line 29: | Line 31: | ||
==TaskRun Operations== | ==TaskRun Operations== | ||
{{Internal|Tekton_TaskRun#Overview|TaskRun}} | |||
===List TaskRuns=== | ===List TaskRuns=== | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
Line 41: | Line 44: | ||
kubectl [-n <namespace-name>] logs --selector=tekton.dev/taskRun=<taskrun-name> | kubectl [-n <namespace-name>] logs --selector=tekton.dev/taskRun=<taskrun-name> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===<span id='Cancel_TaskRuns'></span>Cancel TaskRun=== | |||
<font color=darkkhaki>TO PROCESS: https://tekton.dev/docs/pipelines/taskruns/#cancelling-a-taskrun</font> | |||
==Pipeline Operations== | ==Pipeline Operations== | ||
==PipelineRun Operations== | ==PipelineRun Operations== | ||
Line 71: | Line 77: | ||
* Debugging tasks: https://tekton.dev/docs/pipelines/tasks/#debugging | * Debugging tasks: https://tekton.dev/docs/pipelines/tasks/#debugging | ||
* Debugging taskruns: https://tekton.dev/docs/pipelines/taskruns/#debugging-a-taskrun | |||
* Debug: https://tekton.dev/docs/pipelines/debug/ | |||
* Execution Logs: https://tekton.dev/docs/pipelines/logs/ | |||
</font> | </font> | ||
=HA Support= | |||
{{External|https://tekton.dev/docs/pipelines/enabling-ha/}} | |||
=Performance Optimization= | |||
{{External|https://tekton.dev/docs/pipelines/tekton-controller-performance-configuration/}} |
Latest revision as of 05:03, 29 April 2022
Internal
Tekton Pipelines
Tekton Pipelines Installation
kubectl apply -f https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
kubectl get pods -n tekton-pipelines --watch
The installation will create a tekton-pipelines
namespace.
TO PROCESS: https://tekton.dev/docs/pipelines/install/
Tekton CLI
Tekton CLI Installation
brew tap tektoncd/tools
brew install tektoncd/tools/tektoncd-cli
Domain Model Operations
Task Operations
List Tasks
tkn t list
# Corresponding low level command
kubectl [-n <namespace-name>] get tasks
TaskRun Operations
List TaskRuns
tkn tr list
# Corresponding low level command
kubectl [-n <namespace-name>] get taskruns
Display Execution Log of a TaskRun
kubectl [-n <namespace-name>] logs --selector=tekton.dev/taskRun=<taskrun-name>
Cancel TaskRun
TO PROCESS: https://tekton.dev/docs/pipelines/taskruns/#cancelling-a-taskrun
Pipeline Operations
PipelineRun Operations
List PipelineRuns
tkn [-n <namespace-name>] p list
# Corresponding low level command
kubectl [-n <namespace-name>] get pipelineruns
Display Execution Log of a TaskRun
tkn [-n <namespace-name>] pr logs <pipelinerun-name>
# Corresponding low level command
kubectl [-n <namespace-name>] logs --selector=tekton.dev/pipelineRun=<pipelinerun-name>
Delete PipelineRuns
tkn pr delete <pipeline-run-name>|--all
Deleting a PipelineRun deletes associated TaskRuns.
Troubleshooting and Debugging
TO PROCESS:
- Debugging tasks: https://tekton.dev/docs/pipelines/tasks/#debugging
- Debugging taskruns: https://tekton.dev/docs/pipelines/taskruns/#debugging-a-taskrun
- Debug: https://tekton.dev/docs/pipelines/debug/
- Execution Logs: https://tekton.dev/docs/pipelines/logs/