How to Use Kubernetes Pods As Jenkins Agents

  Рет қаралды 59,098

CloudBeesTV

CloudBeesTV

Күн бұрын

Пікірлер: 61
@idouxda
@idouxda Жыл бұрын
Thanks for the video. I had to add one more command. ‘kubectl create token jenkins -namespace=jenkins’
@rileydavidjesus
@rileydavidjesus 9 ай бұрын
thanks dude
@dannyhd8301
@dannyhd8301 7 ай бұрын
This video answered my one-month problem, This is gold. This person is extremely well experienced , I have to watch over 350 of his vids on Jenkins all short concise and perfect
@EdwardPike
@EdwardPike 2 жыл бұрын
Heads Up: In Kubernetes 1.24, the token will not be automatically created for the service user. The Docker changes kinda overshadowed that news for many.
@MikeZadik
@MikeZadik 6 ай бұрын
I really appreciate your videos. They helped so much. They are clear and concise and answer many possible questions. The presentation is nothing but professional. You probably helped so many people
@praneethbharadwajaghadiyaram
@praneethbharadwajaghadiyaram 5 ай бұрын
Thanks for this Mr. Darin Pope. You are explaining things in a very simple way.
@ng8326
@ng8326 2 жыл бұрын
This is a wonderful walkthrough. I cannot stress enough how useful it is to walk through what is happening and deliberately running into the errors one would reasonably encounter and explaining why they happen.
@seanmoreno16
@seanmoreno16 Жыл бұрын
This was unbelievably helpful. Walking through errors was very valuable. I came here to learn how to get my pods to spin up through the kubernetes plugin and ended up also learning that I can create any container within the same pod as the agent. This allows me to easily build an environment for my code to run. Thank you!
@JohnNguyen-x1w
@JohnNguyen-x1w Ай бұрын
building multiple containers within a Pod is not a good idea though... unless they need to share data....
@VANTYCSolutions
@VANTYCSolutions Жыл бұрын
Thank you very much for this wonderful video 🙏, it has helped me a lot to finally have CI in my K8s Cluster.
@mirnabakhoum2534
@mirnabakhoum2534 5 ай бұрын
Thanks alot, It was very clear and to the point
@FriedrichBrunzema
@FriedrichBrunzema 2 жыл бұрын
Hi -- I was struggling to set up agents on EKS, the video really helped. Thanks for taking the time to make this.
@ImaneElouadi-eq1zc
@ImaneElouadi-eq1zc Жыл бұрын
That was very helpful, Thank you !
@chetanraj1009
@chetanraj1009 3 жыл бұрын
Thank you so much. Respect from India.
@joesoh
@joesoh 2 жыл бұрын
Awesome guide. very clear and concise crafted video. I followed your guide and managed to setup Jenkins agent on Kubernetes in no time!
@romanmasiar122
@romanmasiar122 2 жыл бұрын
Great way of explaining things. Thanks!
@kd6164
@kd6164 3 жыл бұрын
I use kubernetes for my Jenkins control plane and learning about jenkins nodes made me think about how I could use this to make nodes; great video!
@bhbslp
@bhbslp 3 жыл бұрын
Great video! Super informative... It would be nice to point out the importance of "tty: true" in the yaml. I missed that and took me forever to understand that Jenkins needs that to be true to allow commands to be sent to the container. Otherwise the job just loops trying to run without any error.
@piyushpatil1666
@piyushpatil1666 2 жыл бұрын
When i used linux image as container, installed helm and run sh 'helm list' command it giving me error like failed to list secret is forbidden : user "system:serviceaccount:helm:default" cannot list resources "secrets" in API group in thr namespace
@krishm5116
@krishm5116 2 жыл бұрын
This video is amazing, clarified my many doubts in one place with clarity. Thanks
@ganeshwankhede3329
@ganeshwankhede3329 6 ай бұрын
what about creating some file in Jenkins workspace from POd or conatainer agent ?
@EdwardPike
@EdwardPike 2 жыл бұрын
During kubernetes cloud config, if your websocket setting mentions "localhost", it is not routable. The jnlp won't be able to connect back to to jenkins controller (as Darin said). Just to give a detail about what that looks like: The error will occur just after the line "Started container jnlp" and the reason will be "SEVERE: Connection failed."
@pramodvasista
@pramodvasista 2 жыл бұрын
Wonderfully explained. Good job.
@georgeradu3759
@georgeradu3759 2 жыл бұрын
This is wonderful. Thanks so much
@sivaramakrishnan166
@sivaramakrishnan166 Жыл бұрын
Excellent Video!!!!
@marketsentiment7797
@marketsentiment7797 3 жыл бұрын
you are genius, explaining step by step great!
@nikhileshsaggere
@nikhileshsaggere 2 жыл бұрын
superb explaination🎉
@thirukandiurgopinath9362
@thirukandiurgopinath9362 3 жыл бұрын
Thank you so much DarinPope for this video, providing complete details of communication between Jenkins and Kubernetes Pods through the Kubernetes plugin.
@root30
@root30 2 жыл бұрын
Thank you for you work, it is awesome!
@pstranded
@pstranded 2 жыл бұрын
How do I share workspace with Master in such setup?
@ManuelWahle
@ManuelWahle 10 ай бұрын
Help me, -Obi-Wan Kenobi- Darin Pope!
@rex-dj5cu
@rex-dj5cu 11 ай бұрын
facing websocket error when i run job
@gokul9677
@gokul9677 Жыл бұрын
I am using an very old version of jenkins 2.19 and planning to upgrade and when trying to install support core plugin it says this plugin works for 2.28 or newer.. Please suggest how to proceed
@naagnext5318
@naagnext5318 2 жыл бұрын
very nice and clear. and btw "Gave the thumbsup and subscribed" :)
@aayushshrivastava1912
@aayushshrivastava1912 Жыл бұрын
please helm me with that like if i have minikube so what ip should i put to add a node in jenkins
@李大雷-e5t
@李大雷-e5t 2 жыл бұрын
thanks ! but how to use k8s pod as static agent ?
@deek414
@deek414 2 жыл бұрын
I have followed steps.. however credential are not picked up in the error message. can someone help
@oliverboehm02
@oliverboehm02 8 ай бұрын
im using an agent with multiple containers, i set the retetntion to never in the kubernetes settings of jenkins. sadly, the agent pods are never deleted correctly.. the pod has my containers + a jnlp container.. this one gets stopped, but the ones i definded by my own are still running.. does someone know what to do? i just looked at my namespace and there are like 50+ pods still running
@oliverboehm02
@oliverboehm02 8 ай бұрын
nevermind, delete wasn't included in the role for jenkins^^
@arunchandramouli3020
@arunchandramouli3020 2 жыл бұрын
Is it possible to use both docker agent and kubernetes agent in same jenkinsfile?
@christianherrera9524
@christianherrera9524 3 жыл бұрын
Very informative, thanks!
@ma3145tt
@ma3145tt 2 жыл бұрын
Is it possible to build the pod image from a Dockerfile in the pipeline? For example, the Docker plugin allows you to specify the Dockerfile to build the image. This would allow changes to build infrastructure to be tested as part of the pipeline and building the application.
@lineuve
@lineuve 3 жыл бұрын
Excelente tutorial, cada passo detalhando e com um exemplo. Parabens Mestre e time CloudBeesTV
@RaviSharma-vw7py
@RaviSharma-vw7py 2 жыл бұрын
Thanks DPope!
@sarathkumarbabji5188
@sarathkumarbabji5188 2 жыл бұрын
if we upgrade jenkins to 2.361.1, can we use pods java8 container? I heard we need java11 for controller and slave
@FabioPeruchi
@FabioPeruchi 2 жыл бұрын
Is it possible to launch Kubernetes pods using via Jenkins job with a Jenkins instance running locally and a Kubernetes cluster running remotely? I've tried but I could not make it work.
@shanmukhabollapragada8832
@shanmukhabollapragada8832 2 жыл бұрын
thanks a lot for clear explanation. one thing i am wondering, is running docker commands supported within the container (assuming ubuntu) out of the box. or does it require any additional configuration
@JithendarDharmapuri
@JithendarDharmapuri 3 жыл бұрын
Very Informative 😍
@remoambi82
@remoambi82 3 жыл бұрын
Hello Sir, Thanks for this. I am trying to set up a bitnami ovf vm as my jenkins server and trying to connect a kubernetes server, When I do this my pod creation always goes on loop? it tries to create and then goes offline . Please throw some light on the same.
@karanjain3524
@karanjain3524 3 жыл бұрын
Hi...I am trying to use bash container as a jenkins agent with the help of kubernetes but it is not able to find some commands for bash which is not helping me to run my scripts.. Any suggestions?
@pabloeglez
@pabloeglez 2 жыл бұрын
Excellent!! This strategy is useful for many steps of my pipeline, but I'm not sure how to generate new images and save them in a registry using this way after build and stress tests.... do you have any recommendations?
@StevePrior
@StevePrior 6 ай бұрын
This video was very helpful and I now have it working in my home lab. I've been using Jenkins running on a Docker host (with DND configured) to create multi-arch container images with the docker pipeline Jenkins plugin. Would you consider doing a video on how to use Kubernetes Pods As Jenkins Agents to build and push a multi-arch container image? This is how I've been doing it on my Jenkins host on Docker: pipeline { agent any stages { stage('build') { agent { docker { image 'my_builder' reuseNode true } } steps { sh 'mvn' } } stage('Containerize') { steps { script { sh 'docker buildx build --platform linux/amd64,linux/arm64 -t my_image_repo/imagename --pull --push .' } } } } }
@vishalpoptani6762
@vishalpoptani6762 2 жыл бұрын
I have followed this tutorial and the plugin test connection worked for me, however when i am trying to run a pipeline the pod is getting created in my cluster and its in running state but i get the below error message in the logs Waiting for agent to connect (30/1000): testpipeline--11-vz1v9-rvxsq-m4dgg Waiting for agent to connect (60/1000): testpipeline--11-vz1v9-rvxsq-m4dgg This happens right after jnlp image is pulled, container is created and started successfully. Anything you would suggest for this behavior?
@NitturuHanif
@NitturuHanif 9 ай бұрын
Am also facing same issue, can you please guide me on this if you got any solution..
@zongruli1138
@zongruli1138 2 жыл бұрын
Good Job!
@hailsonjunior3635
@hailsonjunior3635 3 жыл бұрын
Muito obrigado!!!!
@veeru840
@veeru840 2 жыл бұрын
Great👍
@joaoaraujo8845
@joaoaraujo8845 3 жыл бұрын
Muito bom!
@EdwardPike
@EdwardPike 2 жыл бұрын
"we're fixin to have a kubernetes cluster"
@MrMikhailDJ
@MrMikhailDJ 11 ай бұрын
Failed to start websocket connection: io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred. Any Ideas? Jenkins master running in k8s too
🔴 What's New in Jenkins LTS 2.289.2
24:23
CloudBeesTV
Рет қаралды 1,2 М.
How to Monitor Jenkins With Grafana and Prometheus
25:44
CloudBeesTV
Рет қаралды 27 М.
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 153 МЛН
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49
Kubernetes Explained in 15 Minutes | Hands On (2024 Edition)
15:18
Travis Media
Рет қаралды 108 М.
How to Create an Agent Node in Jenkins
23:57
CloudBeesTV
Рет қаралды 100 М.
Kubernetes Crash Course for Absolute Beginners [NEW]
1:12:04
TechWorld with Nana
Рет қаралды 2,9 МЛН
Jenkins Multibranch Pipeline With Git Tutorial
29:54
CloudBeesTV
Рет қаралды 85 М.
you need to learn Kubernetes RIGHT NOW!!
29:34
NetworkChuck
Рет қаралды 1,2 МЛН
[ Kube 25 Discussion 1 ] Configuring Jenkins to connect to Kubernetes cluster
19:27
Getting Started With Shared Libraries in Jenkins
23:23
CloudBeesTV
Рет қаралды 83 М.
How to Setup Docker Containers As Build Agents for Jenkins
9:43
CloudBeesTV
Рет қаралды 78 М.
Advent of Code: Day 2 - Kotlin
51:22
Paul McBurney
Рет қаралды 53
6 - Запуск Jenkins Slaves в Kubernetes
22:35
BAKAVETS
Рет қаралды 3,1 М.
How many people are in the changing room? #devil #lilith #funny #shorts
00:39