https://github.com/eldada/node-git-to-k8s
An example of a simple node web app CI/CD from sources to Kubernetes
https://github.com/eldada/node-git-to-k8s
Last synced: 12 months ago
JSON representation
An example of a simple node web app CI/CD from sources to Kubernetes
- Host: GitHub
- URL: https://github.com/eldada/node-git-to-k8s
- Owner: eldada
- Created: 2019-06-10T09:36:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-10T18:25:11.000Z (about 7 years ago)
- Last Synced: 2025-01-28T02:34:47.941Z (over 1 year ago)
- Language: Dockerfile
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CI/CD of NodeJS web app to Kubernetes using Jenkins, Docker and Helm
This repository has a very basic example for packing a [NodeJS](https://nodejs.org) web application in [Docker](https://www.docker.com/) and deploying it to [Kubernetes](https://kubernetes.io/) using [Helm](https://helm.sh/).
All this is done with [Jenkins](https://jenkins.io/).
## Details
This pipeline is executed with Jenkins and assumes it's already setup with
- Docker
- Kubectl
- Helm
These tools are required and are not in the scope of this example.
## Pipeline
The [Jenkinsfile](Jenkinsfile) has a very basic pipeline for
1. Step 1 (Docker build)
- Build node web app Docker image
- Run simple test (`curl`)
- Docker push to Artifactory
2. Step 2 (Helm package)
- Package Helm chart
- Upload Helm chart to Artifactory
3. Step 3 (Deploy)
- Helm install demo app
- Show deployment status