Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leandroberetta/karpenter
Tekton tasks to use in CI/CD pipelines
https://github.com/leandroberetta/karpenter
cicd kubernetes pipelines tekton
Last synced: 8 days ago
JSON representation
Tekton tasks to use in CI/CD pipelines
- Host: GitHub
- URL: https://github.com/leandroberetta/karpenter
- Owner: leandroberetta
- Created: 2020-05-28T03:22:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-20T17:25:52.000Z (over 4 years ago)
- Last Synced: 2024-11-18T21:03:59.172Z (2 months ago)
- Topics: cicd, kubernetes, pipelines, tekton
- Language: Dockerfile
- Homepage:
- Size: 147 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Karpenter
Tekton tasks to use in CI/CD pipelines.
## Tasks
The following tasks are available to use:
* [git](tasks/git/git.yaml)
* [mvn](tasks/mvn/mvn.yaml)
* [npm](tasks/mvn/npm.yaml)
* [buildah](tasks/buildah/buildah.yaml)
* [kubectl](tasks/kubectl/kubectl.yaml)
* [s2i](tasks/s2i/s2i.yaml)## Demo
The following demo consists on a sample pipeline to demonstrate the use of Karpenter tasks and Tekton pipelines.
### Pipeline Overview
![pipelines](./demo/pipeline.png)
### Run on Minikube
Start a Minikube instance:
minikube start --memory=8g --insecure-registry "example.org"
Install the registry and registry-aliases addons:
minikube addons enable registry
minikube addons enable registry-aliasesInstall Tekton pipelines and Tekton dashboard
kubectl apply -f https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
kubectl apply -f https://github.com/tektoncd/dashboard/releases/latest/download/tekton-dashboard-release.yamlCreate a namespace to deploy the application:
kubectl create namespace hello
Create the tasks needed by the pipeline:
kubectl apply -R -f ./tasks -n hello
Create the pipeline resources:
kubectl apply -f ./demo/pipeline.yaml -n hello
Finally run the pipeline:
echo "apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: hello-pipeline-run
spec:
serviceAccountName: build-bot
pipelineRef:
name: hello-pipeline
workspaces:
- name: source
persistentvolumeclaim:
claimName: source" | kubectl apply -f - -n hello