Start minikube
minikube start
Before starting, we might want to clear up all old resources:
kubectl delete task,taskrun,pipeline,pr --all
Create Task and check the outcome:
kubectl apply --filename task-example-1.yaml
kubectl get task
Create TaskRun and check the outcome:
kubectl apply -f taskrun-example-1.yaml
kubectl get taskruns
kubectl get pods
kubectl logs hello-task-run-pod
Create Pipeline and check the outcome:
kubectl apply -f task-example-2.yaml
kubectl apply -f pipeline-example-1.yaml
kubectl get pipeline
Create PipelineRun and check the outcome:
kubectl apply -f pipelinerun-example-1.yaml
tkn pipelinerun logs hello-goodbye-run -f