Candidly...I'm not very well versed to Jenkins/K8 and how this is done for CI/CD...this was absolutely crystal clear.
7 жыл бұрын
Awesome video! I'm building a jenkins pipeline shared library for our Google Cloud + Kubernetes + Docker + Cloudflare stack and your Jenkinsfile pipelines were a nice inspiration! Thanks!
@kingsadmin6 жыл бұрын
Lachlan, I like the way you presented as simple as it is, excellent job! :)
@visionmountain30705 жыл бұрын
I have issue about that Error: render error in "jenkins/templates/deprecation.yaml": template: jenkins/templates/deprecation.yaml:13:14: executing "jenkins/templates/deprecation.yaml" at : error calling fail: `Master.ImageTag` does no longer exist. It has been renamed to `master.imageTag
@omarimai74283 жыл бұрын
Thanks to you, now I have a better perspective !
@jamescarr997 жыл бұрын
Lachlan: really good presentation. Thanks for sharing this.
@sridharan19824 жыл бұрын
what is the reasoning to publish container during PR and merge into master? shouldn't it be just done as part of latter
@katuciaatootong77792 жыл бұрын
Lachlan Evenson thanks you for the video. Quick question do you have two pipeline dev and production. I am a student just don’t understand the flow at that level please explain me or someone here who go the concept. Thanks you to help
@lifuqian38636 жыл бұрын
thanks for this video! It's a good example for using jenkens in Kubernetes.
@gltr41297 жыл бұрын
Thanks for the video! But can you also post a video on how to use ingress, kube-lego and get HTTPs to work? Those things seemed very necessary to follow your example, but you went over them in like 10 seconds.
@LachlanEvenson7 жыл бұрын
Absolutely. I cover those things in the following video -- kzbin.info/www/bejne/fICVaZysr7yNeNU
@tapas5114 жыл бұрын
Awesome CICD example in K8S.
@dmontube7 жыл бұрын
Thanks for your guide. Can you please make it even more complete by starting from very beginning (kubernetes install). Which cloud you use? I've tried to deploy latest kubernetes 1.6.0 on baremetal via kubeadm. Jenkins/nginx-ingress works deployment completed successfully, I can log in to jenkins, but pipeline stuck in waiting for kube-pods workers. AFAIU this is issue with communicating between kubernetes-plugin and kubernetes-server itself. Probably this is due to new RBAC model. Please share you config so I can understand what goes wrong in my scenario.
@LachlanEvenson7 жыл бұрын
You should be able to create a service account then reference it in the kubernetes plugin Something like ```shell kubectl -n create sa jenkins kubectl create clusterrolebinding jenkins --clusterrole cluster-admin --serviceaccount=:jenkins ```
Awesome job!! I was able to launch the pod on top of kubernetes cluster but unable to login with the password extracted using below command printf $(kubectl get secret --namespace jenkins-blue lazy-tortoise-jenkins -o jsonpath="{.data.jenkins-admin-password}" | base64 --decode);echo Any help on this is appreciated. Do I need to run kube lego and nginx as well?
@synnibarr7 жыл бұрын
I tried running through the steps just now and encountered an error complaining about incompatible version of Jenkins Plugins. So, I updated to kubernetes:0.12, credentials-binding:1.13, git:3.5.1, blueocean:1.1.6; however, it then fails because each Groovy signature needs approval. I had to add the following Signatures to: /scriptApproval/ method groovy.json.JsonSlurperClassic parseText java.lang.String method java.util.Collection toArray new groovy.json.JsonSlurperClassic staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods leftShift java.util.Map java.util.Map staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods split java.lang.String staticMethod org.kohsuke.groovy.sandbox.impl.Checker checkedCall java.lang.Object boolean boolean java.lang.String java.lang.Object[] staticMethod org.kohsuke.groovy.sandbox.impl.Checker checkedGetProperty java.lang.Object boolean boolean java.lang.Object
@LachlanEvenson7 жыл бұрын
Are you following these steps? github.com/lachie83/croc-hunter/blob/master/DEMO.md
@synnibarr7 жыл бұрын
Yes, I have. And when I get to the Blue Ocean steps, the Github org does not load for me. Looking at the Jenkins admin page, there are multiple "issues" it wants to resolve: GitHub Pipeline for Blue Ocean v1.1.6 Pipeline implementation for Blue Ocean v1.1.6 failed to load. Fix this plugin first. GitHub plugin v1.28.0 Jenkins Git plugin v3.3.1 is older than required. To fix, install v3.4.0 or later. GitHub Pull Request Builder v1.39.0 GitHub plugin v1.28.0 failed to load. Fix this plugin first. Events API for Blue Ocean v1.1.6 Pipeline implementation for Blue Ocean v1.1.6 failed to load. Fix this plugin first. Blue Ocean Pipeline Editor v0.2.0 Pipeline implementation for Blue Ocean v1.1.6 failed to load. Fix this plugin first. GitHub Branch Source Plugin v2.2.3 GitHub plugin v1.28.0 failed to load. Fix this plugin first. Blue Ocean v1.1.4 Events API for Blue Ocean v1.1.6 failed to load. Fix this plugin first. Pipeline implementation for Blue Ocean v1.1.6 GitHub Branch Source Plugin v2.2.3 failed to load. Fix this plugin first.
@LachlanEvenson7 жыл бұрын
Doh! Let's get this fixed!
@synnibarr7 жыл бұрын
Here's my repo with the updates so far: github.com/lastcoolnameleft/croc-hunter I'm getting closer, but still failing to deploy to K8S: RUNNING: croc-hunter-croc-hunter-web-test FAILED: croc-hunter-croc-hunter-web-test, run `kubectl logs croc-hunter-croc-hunter-web-test --namespace croc-hunter` for more info ➜ croc-hunter git:(master) kubectl logs croc-hunter-croc-hunter-web-test --namespace croc-hunter Error from server (NotFound): pods "croc-hunter-croc-hunter-web-test" not found
@paulaan70353 жыл бұрын
thanks a ton bro!
@clone-23227 жыл бұрын
Are you running this on AWS or GCP?
@LachlanEvenson7 жыл бұрын
Erich Hartmann This cluster was running on Azure ACS