Tekton Operations: Difference between revisions
Jump to navigation
Jump to search
Line 31: | Line 31: | ||
===List TaskRuns=== | ===List TaskRuns=== | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
tkn tr list | |||
# Corresponding low level command | |||
kubectl [-n <namespace-name>] get taskruns | kubectl [-n <namespace-name>] get taskruns | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Display Execution Log of a TaskRun=== | ===Display Execution Log of a TaskRun=== | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> |
Revision as of 23:11, 27 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.
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>
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>