Skip to content

javajon/node-js-tekton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tekton Pipeline Example Using Node.js

The Tekton Pipelines project provides Kubernetes-style resources for declaring CI / CD style pipelines. Tekton is an open-source project that formed as a sub project of the Knative project in March of 2019. Using established Kubernetes style declarations whole pipelines can be declared. The pipelines run on Kubernetes like any other process. Each steps runs as an independent container. Tekton also helps normalize and standardize the terms and methods for forming and running pipelines. Tekton pipelines can compliment a variety of popular CI/CD engines. For more information also see the Continuous Delivery Foundation (CDF).

This project demonstrates the building, deploying and running a Node.js application using Tekton on Kubernetes.

Note: This project has been updated to work with modern versions of Tekton (v0.40+) that no longer support the deprecated PipelineResource type. Instead, it uses Workspaces and the git-clone task for source code management.

Build and Deploy a Node.js App Using Tekton Pipeline

Prerequisites

  • Kubernetes cluster (1.25+)
  • Tekton Pipelines installed (v0.40+)
  • kubectl configured to access your cluster
  • A container registry accessible from your cluster

Running the Pipeline

  1. Apply the pipeline resources:
kubectl apply -f pipeline/
  1. Create and run the pipeline:
kubectl create -f pipeline/pipeline-run.yaml
  1. Monitor the pipeline execution:
tkn pipelinerun logs application-pipeline-run -f

References

This tutorial was adapted from this other helpful tutorial.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published