=== Example: Getting started with skaffold and CI/CD using Tekton
:icons: font
This is a simple example to show users how to run the generate-pipeline command
_Please keep in mind that the generate-pipeline command is still a WIP_
Prerequisites:
* Install tekton on your cluster (https://github.com/tektoncd/pipeline/blob/master/docs/install.md)
* Have kaniko secrets setup (https://github.com/GoogleContainerTools/kaniko)
* Container registry must be public
* Give your default service account the cluster-admin role (necessary to have pipeline access secrets)
----
kubectl create clusterrolebinding serviceaccounts-cluster-admin \
--clusterrole=cluster-admin \
--user=system:serviceaccount:default:default
----
To generate and run a pipeline:
* Run skaffold generate-pipeline
* Modify skaffold.yaml to use a valid GCSbucket for kaniko
* Commit and push updated skaffold.yaml
* kubectl apply -f pipeline.yaml
* Create a pipelinerun.yaml
* kubectl apply -f pipelinerun.yaml