View
65
Download
0
Category
Preview:
Citation preview
pros
1. specialize each salve2. adding slaves permits to scale3. each team could manage its own slave(s)4. slaves are isolated
14
cons
1. Provisioning slaves still manual operation (could be automated)
2. it’s not an instant operation (VMs take time before being available)
3. A developer team hasn’t to bother about the build factory (not too much)
15
pros
1. scales very well2. tailored for on-premises or the cloud3. slaves images could be specialized at will
18
cons
1. Need a dedicated team to manage the swarm cluster2. There’s not yet a managed Docker container on GCP3. On the cloud, the Docker cluster could cost a lot of
money.
19
Kubernetes concepts
22
Pod Selector ReplicaSet
Volume Secret DaemonSet
Service Ingress StatefulSet
Deployment Liveness Probe ConfigMap
Cluster Readiness Probe
Label Job
Read the doc
https://cloud.google.com/solutions/configuring-jenkins-container-engine
https://cloud.google.com/solutions/continuous-delivery-jenkins-container-engine
https://github.com/GoogleCloudPlatform/continuous-deployment-on-kubernetes
https://cloud.google.com/solutions/jenkins-on-container-engine-tutorial
25
Jenkins Kubernetes Plugin
The aim of the Kubernetes plugin is to be able to use a Kubernetes cluster to dynamically provision a Jenkins agent (using Kubernetes scheduling mechanisms to optimize the loads), run a single build, then tear-down that slave.
26
pros
1. Google takes care of the scalability (almost)2. Kubernetes has already needed concepts to create a
Jenkins cluster3. Native Cluster isolation (namespaces)4. virtually unlimited (Container Auto Scaler
https://cloud.google.com/container-engine/docs/resize-cluster )
28
Links
https://www.martinfowler.com/articles/continuousIntegration.html
https://www.slideshare.net/Docker/build-publish-deploy-and-test-docker-images-and-containers-with-jenkins-workflow
https://engineering.riotgames.com/news/jenkins-ephemeral-docker-tutorial
https://goto.docker.com/continuous-integration-pipeline-ty.html
http://glaforge.appspot.com/article/scale-jenkins-with-kubernetes-on-google-container-engine
29
Demo
Coming soon :1. Jenkins/Kubernetes/GCP 2. Jenkins/Nomad/GCP3. (vault, google iam, google Logging)
31
Recommended