This is a demo project for the Cloudbees Days 2019 Seattle event. This project demonstrates the following:
-
Jenkins running in GKE using the Kubernetes Plugin
-
Utilizing GCP officially supported Jenkins plugins: (GCS, OAuth, GKE)
-
Demonstrates best practices with real world use-case
- Builds and tests SpringBoot Application
- Publishes container image to GCR using Kaniko
- Uses the Jenkins GKE plugin to deploy to multiple clusters in GKE
The follow describes the setup process for this project.
-
Install Jenkins on GKE using the stable/jenkins helm chart: Jenkins On GKE Tutorial
-
Install and configure the GKE plugin: Jenkins GKE Docs
-
Add GCP SA JSON key to secret store for kaniko:
kubectl create secret generic kaniko-secret --from-file=<path to kaniko-secret.json>
-
Create a new Multibranch Pipeline Jenkins project pointed at this repository: Jenkins Multibranch Pipeline Tutorial