https://nodejs.org
node -e "console.log('Hello world')"
https://code.visualstudio.com/
Kubernetes by Microsoft
YAML by Red Hat
Tekton Pipelines by Red Hat
https://docker.com/get-started
docker version
https://minikube.sigs.k8s.io/docs/start/
minikube start
minikube addons enable ingress
https://kubernetes.io/docs/tasks/tools/install-kubectl/
kubectl version
or kubectl get all
https://tekton.dev/docs/getting-started/#set-up-the-cli
kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
kubectl apply -f https://storage.googleapis.com/tekton-releases/triggers/latest/release.yaml
kubectl apply -f https://storage.googleapis.com/tekton-releases/triggers/latest/interceptors.yaml
tkn version
kubectl apply --filename https://github.com/tektoncd/dashboard/releases/latest/download/tekton-dashboard-release.yaml
kubectl --namespace tekton-pipelines port-forward svc/tekton-dashboard 9097:9097
Go to http://localhost:9097
kubectl apply -f https://raw.githubusercontent.com/tektoncd/triggers/main/examples/rbac.yaml
kubectl create clusterrolebinding serviceaccounts-cluster-admin --clusterrole=cluster-admin --group=system:serviceaccounts
git clone https://github.com/genekuo/tekton-book-app.git
cd tekton-book-app
npm install
npm start
curl localhost:3000
curl localhost:3000/add/12/10
curl localhost:3000/substract/10/2
Ctrl+C
npm run lint
npm run test
docker build -t <YOUR_USERNAME>/tekton-lab-app .
docker login docker.io
docker push <YOUR_USERNAME>/tekton-lab-app
kubectl apply -f deploy.yaml
kubectl get deploy
curl $(minikube ip)
Change the response to the "/" route in server.js to return a different response.
git commit -am "Change a server response to one"
git push origin main
npm run test
npm run lint
docker build –t <YOUR_USERNAME>/tekton-lab-app .
docker push <YOUR_USERNAME>/tekton-lab-app
kubectl rollout restart deployment/tekton-deployment
curl $(minikube ip)
https://hub.tekton.dev
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/git-clone/0.5/git-clone.yaml
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/npm/0.1/npm.yaml
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/kubernetes-actions/0.2/kubernetes-actions.yaml
cd deployment-pipeline
`kubectl apply -f task.yaml
kubectl apply -f pipeline.yaml
export TEKTON_SECRET=$(head -c 24 /dev/random | base64)
kubectl create secret generic git-secret --from-literal=secretToken=$TEKTON_SECRET
echo $TEKTON_SECRET
Edit <YOUR_USERNAME> and <YOUR_PASSWORD> in the trigger.yaml
kubectl apply -f trigger.yaml
https://ngrok.com/download
kubectl port-forward svc/el-listener 8080
ngrok http 8080
Payload URL: This is your public ngrok URL
Content Type: This should be changed to application/json
Secret: This is the secret you've stored in the $TEKTON_SECRET environment variables
Change the response to the "/" route in server.js to return a different response.
npm run test
npm run lint
git commit -am "Change a server response to two"
git push origin main
tkn pipelineruns ls
curl $(minikube ip)
minikube stop
minikube delete