Nicole732 / cicd-pipeline-train-schedule-canary

Train Schedule sample app for Jenkins Pipelines CD with Kubernetes Canary exercises

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cicd-pipeline-train-schedule-canary

This is a simple train schedule app written using nodejs. It is intended to be used as a sample application for a series of hands-on learning activities.

Running the app

You need a Java JDK 7 or later to run the build. You can run the build like this:

./gradlew build

You can run the app with:

./gradlew npm_start

Once it is running, you can access it in a browser at http://localhost:8080

Notes

This is a sample canary deployement of an app to fix a bug after it has been deployed to prod. Deploy to pro using train-schedule-kube.yml before adding train-schedule-kube-canary.yml for the canary version.

Edit the initial Jenkinsfile to add stage CanaryDeploy, env CANARY_REPLICAS & canary deployment yml file in deployProduction stage.

Check running pods using kubectl get pods -w. Use cat ~/.kube/config to get content of kubeconfig credentials for Jenkins set-up.

About

Train Schedule sample app for Jenkins Pipelines CD with Kubernetes Canary exercises


Languages

Language:JavaScript 76.0%Language:CSS 11.8%Language:Pug 10.7%Language:Dockerfile 1.5%