[ Kube 25 Discussion 1 ] Configuring Jenkins to connect to Kubernetes cluster

  Рет қаралды 52,391

Just me and Opensource

Just me and Opensource

4 жыл бұрын

In this video, I will show you how to connect your existing Jenkins server to your Kubernetes cluster. I did a video on Running Jenkins in Kubernetes cluster and launching slave jenkins pods in the kubernetes cluster. This video is about connecting the existing Jenkins server outside of Kubernetes cluster and running the slave pods withing the K8s cluster.
[ Kube 25 ] Running Jenkins in Kubernetes Cluster using Helm
• [ Kube 25 ] Running Je...
😺 Github:
github.com/justmeandopensourc...
📺 Kubernetes & Jenkins Playlist:
• Kubernetes & Jenkins
📺 Learn Kubernetes Playlist:
• Learn Kubernetes
Hope you enjoyed this video. Please share it with your friends and don't forget to subscribe to my channel. For any questions/issues/feedback, please leave me a comment and I will be happy to help.
👏 Thanks for watching.
💗 If you wish to support me:
www.paypal.com/cgi-bin/webscr...
#learnkubernetes #justmekubernetes #justmejenkins

Пікірлер: 400
@mathewkargarzadeh3158
@mathewkargarzadeh3158 4 жыл бұрын
Great illustration on Configuring Jenkins to connect to Kubernetes cluster for app deployment. Thanks Venkat !!. Kudos to you !!
@justmeandopensource
@justmeandopensource 4 жыл бұрын
HI Mathew, many thanks for watching this video and taking time to comment/appreciate. Cheers.
@sidyoutuber7840
@sidyoutuber7840 3 жыл бұрын
@@justmeandopensource hello, i need to have a conversation with you can you please share me your e-mail?
@BiohaZd5
@BiohaZd5 4 жыл бұрын
Your videos are really high quality and very informative. Thanks for taking time to do them.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Andy, thanks for watching. Cheers.
@vishalkole9111
@vishalkole9111 2 жыл бұрын
You have the best content on K8s. Love it!
@justmeandopensource
@justmeandopensource 2 жыл бұрын
Hi Vishal, thanks for your interest in this content and glad you find it helpful. Cheers.
@PrashantJadhav2687
@PrashantJadhav2687 4 жыл бұрын
Thank you for your efforts in creating amazing videos and sharing your knowledge.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Prashant, thanks for watching.
@kayoutube690
@kayoutube690 Жыл бұрын
I love you Bro, keep doin' amazing tutorial in kubernetes plus jenkins.
@justmeandopensource
@justmeandopensource Жыл бұрын
Hi, thanks for watching.
@alexolinux
@alexolinux 5 ай бұрын
I was with a trick failure on my k8s communication... It was solved after following the steps in your video. Thanks a lot!
@justmeandopensource
@justmeandopensource 5 ай бұрын
Great 👍 Thanks for watching.
@machireddyshyamsunder987
@machireddyshyamsunder987 3 жыл бұрын
excellently explained Venkat .. Thanks
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Thanks for watching. Cheers.
@arsenical1
@arsenical1 4 жыл бұрын
I am so gratefull !!!, I needed it its video for connect my cloud en digital ocean on rancher., thanks !!!
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Luis, thanks for watching.
@ghassenbenmansour3159
@ghassenbenmansour3159 3 жыл бұрын
great content , really helpful !!!! keep up the good work
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Hi Ghassen, thanks for watching. Cheers.
@narayanareddy3543
@narayanareddy3543 2 жыл бұрын
Really nice and awesome concept , thanks
@justmeandopensource
@justmeandopensource 2 жыл бұрын
Hi, thanks for watching.
@nagarajunagari2266
@nagarajunagari2266 4 жыл бұрын
Thank you so much bro for ur valuable information 🙏
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Nagaraju, thanks for watching. Cheers.
@jentsuwang7317
@jentsuwang7317 2 жыл бұрын
Thank you always and you are the best
@justmeandopensource
@justmeandopensource 2 жыл бұрын
Hi Jen, thanks for watching. Cheers.
@jackymorales3714
@jackymorales3714 4 жыл бұрын
Amazing! Finally I found it! Thanks you!
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Jacky, thanks for watching.
@jackymorales3714
@jackymorales3714 4 жыл бұрын
@@justmeandopensource well, I have a question, that I am new in kubernetes, following your tutorial I could create the connection with my kubernetes, but the question is, I have a vm of jenkins, and then I have my kubernetes aks, jenkins is not in this kubernetes . At the time of testing your video, the pod appears but stays pending all the time, as I read it does not connect because I do not have a jnlp slave in kubernetes, and that is what I do not understand, I would like to know how I make a connector Among them, I have seen that they open a jenkins slave with port 5000 but I do not quite understand. Regards, and thank you very much
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@jackymorales3714 Yes. In your jenkins configuration, you would have set the jnlp port (50000). This is the port the slaves (pods in k8s cluster) will use to connect to the master. In the slave pod configuration in kubernetes plugin in your Jenkins master, you will have defined the jenkins url that this slave pod will connect to. So your 50000 port on jenkins vm must be reachable from internet for your slave pod in AKS to connect to.
@jackymorales3714
@jackymorales3714 4 жыл бұрын
@@justmeandopensource It was just that, I had restricted ports in my vm. Thank you!
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@jackymorales3714 You are welcome. Cheers.
@mukhtarali9476
@mukhtarali9476 4 жыл бұрын
Hi Ventkat, Amazing, very useful videos i hope you will make another series on cloud native apps.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Mukhtar, thanks for watching this video. Yeah, got lots of such ideas in mind but I don't think I will have time to achieve everything.
@mukhtarali9476
@mukhtarali9476 4 жыл бұрын
@@justmeandopensource very thankful to you for made easy to learn k8's.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@mukhtarali9476 No worries. You are welcome.
@devcode9290
@devcode9290 4 жыл бұрын
Thanks a lot for this video!!!
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Thanks for watching.
@rritsoftwaresolutions9566
@rritsoftwaresolutions9566 Жыл бұрын
nice super bro , keep it up , all the best
@justmeandopensource
@justmeandopensource Жыл бұрын
Hi, thanks for watching.
@anas6435
@anas6435 4 жыл бұрын
very informative ! thank you very much
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Thanks Anas.
@cloudboy553
@cloudboy553 3 жыл бұрын
wow This video big help for me!! awesome
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Hi, thanks for watching. Cheers.
@nirushanthnirmalaraj5
@nirushanthnirmalaraj5 3 жыл бұрын
Useful video. Cheers
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Thanks for watching.
@ramanjaneyuluirla7949
@ramanjaneyuluirla7949 4 жыл бұрын
Thank you very much @venkat for sharing knowledge.......
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Ram, thanks for watching. Cheers.
@ramanjaneyuluirla7949
@ramanjaneyuluirla7949 4 жыл бұрын
@@justmeandopensource Hi Bro... How to Running Jenkins build in pods, and move war file to s3 or centralized repository.....plz....help me Bro
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@ramanjaneyuluirla7949 I believe thats what I have shown in this video. If you want to run jenkins builds in pods, you will have to configure kubernetes plugin with pod templates and in jenkins job you specify the label accordingly.
@esse7847
@esse7847 4 жыл бұрын
Thank you very much for your series of tutorials on Kuberntes, it helped me very much. Do you know any way to configure Github webhook for CI/CD, if Jenkins is running on Kubernetes Cluster in a local environment. I would really appreciate it, if you could share your thoughts on that topic. Thanks again for tutorials!
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Ali, thanks for watching this video and thanks for your interest in this channel. In order to configure Github webhook (to trigger a pipeline in Jenkins), your Jenkins service must be accessible to the internet. Given you are running Jenkins in a Kubernetes cluster in your local environment, you won't be able to connect Github to Jenkins using webhooks. That is unfortunate.
@padamkirankumar832
@padamkirankumar832 4 жыл бұрын
nice video thanks venkat
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi, thanks for watching.
@pkumar5049
@pkumar5049 3 жыл бұрын
That was great. Just like we needed one container in a pod. We should be able to configure to have multiple container inside the pod correct ?
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Yes. But think about scalability before you start using multiple containers in a single pod.
@swananddaoo7913
@swananddaoo7913 3 жыл бұрын
Hi, Best explaination. Can same thing be done using GITLAB CI? And how about Jenkins pipeline. Let's say if I have multiple stages 'build', 'unittest' etc. How to use Jenkinsfile in that case?
@sunny_1515
@sunny_1515 Жыл бұрын
Thank you for your video. I am using Mucrok8s in a test environment to learn all this. It uses Containerd instead of docker. So, why should I do in the container parameters under 'Add a new cloud' and any other place.
@Ruboded
@Ruboded Жыл бұрын
Thanks a lot! Super detailed and informative. Is there a way to connect a jenkins server to an existing EKS cluster without creating a pod? I have a jenkins server running on an ec2 instance, trying to deploy a web application on an existing EKS cluster through the 'Kubernetes CLI Plugin' but it keeps giving an autothentication error. Is there any chance you could be doing a video about that?
@charank7852
@charank7852 4 жыл бұрын
Nice content ..
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Charan K, thanks for watching this video.
@derk6831
@derk6831 4 жыл бұрын
Thanks for those videos. I really appreciate how to take your time to do those wonderful and useful videos for us. If you get a chance can you make a video about aws eks jenkins cicd...? I got an error saying kubectl not found...
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Kade, thanks for watching this video. I have done videos on these topics separately but not on EKS in AWS.
@TravellersNote
@TravellersNote 3 жыл бұрын
@Just me and Opensource how to deploy in the selected namespace in the second k8s using this plugin and command
@buichitai6072
@buichitai6072 4 жыл бұрын
Thank you for your video. I tried as your guid but I got an error when running my job. In my case: I installed jenkins on another server (vm), and want to config to another vm (master of my kubernetes cluster ). I got the error: pending-‘Jenkins’ doesn’t have label ‘kubepods’. Do I need to install jenkins in master by using docker ?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
HI Bui, thanks for watching. It doesn't matter where you install Jenkins. The idea of this video is to explain how to connect your existing Jenkins server to kubernetes. As long as your jenkins vm can talk to kubernetes vm, then you can follow this process. Thanks.
@phaniratnasagarkolli4355
@phaniratnasagarkolli4355 4 жыл бұрын
@Just me and Opensource I tried deploying a slave machine on my remote Kubernetes Cluster. It is failing to deploy the container due to Persistent Volume claim issues. My kubernetes cluster is deployed on Standalone machines (local) and i am using a opensource Storage class provider (openebs) for provisioning which is working fine for other deployments. Please provide your recommendations here.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Phani, thanks for watching this video. This video is about connecting your existing Jenkins master machine to Kubernetes using the kubernetes plugin and launching slaves inside the kubernetes cluster. When you say you are trying to deploy a slave machine, what exactly you are trying to do? Is your jenkins master running on the kubernetes cluster? Or are you trying to deploy jenkins master in the kubernetes cluster? Thanks.
@user-cn1ve6lt6c
@user-cn1ve6lt6c 4 жыл бұрын
good job
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Thanks for watching.
@speednaidu
@speednaidu 4 жыл бұрын
Hi Venkat, thanks a lot for the videos that you are sharing with us on kubernetes. one question related to workloads deployment (CD) to Kubernetes, I heard that people are using ansible as a deployment tool to deploy the workloads to k8s, if possible can you please share your thoughts on integrating jenkins + ansible + k8s.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Naidu, thanks for watching this video. When it comes to deployment, you can use any means or any automation to deploy your application in the target environment. Ansible is one such tool used for automated deployment. I will see if I can do a video on it. I have videos scheduled until 9th December. So any videos I will be doing will be after that. Thanks.
@speednaidu
@speednaidu 4 жыл бұрын
@@justmeandopensource thank you for your reply.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
You are welcome. Cheers.
@venkatk8314
@venkatk8314 4 жыл бұрын
Useful video. Hi Venkat are you planning to do any videos on spinnaker
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Venkat, Thanks for watching this video. I definitely have that in my list. But I have recorded videos until mid December this year. So when I do the Spinnaker video, it will be released late December at the earliest. Cheers.
@bibinjosephnaickenz
@bibinjosephnaickenz 4 жыл бұрын
Able to configure without any issues. Let me know is it possible to scale the Jenkin-slave pods ? The use case is, if all my workers in Jenkins goes full, I want to auto scale (increase the number of slaves) if it comes back down, I would like to reduce the slaves count.
@chalasanisasi
@chalasanisasi 4 жыл бұрын
Great video. Question .....How can I edit the config file of jenkins to edit some security settings? Since this is hosted on k8s, not sure which server/node to look at. btw...jenkins pod mounted on ebs volume. Currently i can view the jenkins file like -> kubectl exec -t -i jenkins-pod-name -n jenkins cat /var/jenkins_home/config.xml But if I want to edit it how can I go about that?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
hi Narayan, thanks for watching. In this video, I connected an existing jenkins master to a kubernetes cluster and the slaves run as pods in the cluster. When you say, you want to edit the jenkins config, is it the jenkins master or the jenkins slave config? If its the jenkins master, you can configure it through dashboard web ui. If its the slave pods running in kubernetes cluster, you shouldn't be configuring it on the pod. Instead, you should be updating the jenkins slave container image itself. Or in the kubernetes cloud plugin configuration page for any settigs related to slave.
@poshlyak343
@poshlyak343 4 жыл бұрын
As always, a great video. But what if Jenkins is in the same Kubernetes cluster, and need to connect another one? I encountered a jenkins slave unavailability problem on port 50000. I changed the port type to Node Port to access jenkins slave from outside the cluster. How bad is that?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi, thanks for watching. You can have and run multiple jenkins instances within the cluster absolutely fine. You just need to make sure they run and are exposed on different ports, thats it. I have recorded a video and will be released tomorrow which is about using jenkins operator for deploying and managing jenkins instances. Cheers.
@aryangupta4973
@aryangupta4973 3 жыл бұрын
Hii Venkant , I am facing difficulty in finding config files in my ubuntu system, so can you please help me out where can I find it ..also I am using minikube for setting local clusters.
@abrarcv4244
@abrarcv4244 2 жыл бұрын
Hi, if we updating a deployment with new image ,how is it works? From this demo I understand that this job executing commands inside the pod
@a.p.7574
@a.p.7574 3 жыл бұрын
Hi Venkat, I wanted to ask a question. I'm doing a project for my school, and we have one VM for Jenkins server and 3 separate vms for Kubernetes cluster, so If Jenkins is running not on a pod/container, but on a virtual machine as an independent server, is it going to work if I just specify the IP address of my Jenkins without pod label and Jenkins tunnel ip when I configure Kubernetes cloud on Jenkins?
@Alex_La
@Alex_La 3 жыл бұрын
I have a K8s cluster on 3 nodes and Jenkins on the 4th. It works fine. But have a message "Jenkins doesn't have label kubepods". I tried it to run Jenkins on K8s node too.
@SandeepKumar-wg1jo
@SandeepKumar-wg1jo 3 жыл бұрын
This is giving very clear information. I have created multiple pod templated and jenkins job is running fine with first pod template but failed with second pod template. I have given the same configuration with different pod label and differentdocker images. Can you please suggest me where am missing.
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Its the docker image most probably that's causing the issue. Try a different one.
@vgi08
@vgi08 3 жыл бұрын
Awesome video. i have a issue while setup in my local. issue: i am running jenkins on ubuntu lts in windows 10 and for docker and kubernetes running docker-desktop. jenkins is able to connect kubernetes cluster in local but whenever i am running any its keep on offline state and there is no logs of pod or any things. it always shows "(pending-‘Jenkins’ doesn’t have label ‘kubepods’)". Note: i am not using jenkins/jnlp-slave:latest image and using jenkins/slave:latest please guide me where i have to check.
@abhipsagupta8670
@abhipsagupta8670 3 жыл бұрын
I Have jenkins and 50 docker cloud configurations in it. we have to manually keep changing the number of containers each docker should have based on the traffic. I want to add kubernetes in this structure, so that it handles the auto spin up of docker containers based on the no. of requests coming in. how can i do it.
@paranjabpa
@paranjabpa 3 жыл бұрын
Hello Venkat.....i am following your videos since a long time and i have cleared my Kubernetes Administration Exam yesterday. So big thanks to you for that i give credit to you for the same. Your Videos on Kubernetes series cleared my concepts :). I have one question on this video...i was practicing connecting jenkins to existing kubernetes which i successfully done but the only issue i am facing is the pods are running on the kubernetes server ....its going into running state but does not execute the job. I created a simple freestyle job which executes hostname command through shell and i also labelled it correctly. The Pods are getting created but they are not running a job and after a few minutes the respective pod terminates and other pod gets created but Jenkins job never runs on any of the pod and on jenkins it gives the error that " Jenkins pod-name is offline " Please find the below outputs and help me out please :) root@ip-172-31-40-194:~/.kube# kubectl get pods --show-labels NAME READY STATUS RESTARTS AGE LABELS kube-mxhvv 1/1 Running 0 19s jenkins/label-digest=a57390dc6cf1a5876519e4f3ae417dd85ea42783,jenkins/label=kubepod,jenkins=slave kube-scmdf 1/1 Terminating 0 2m9s jenkins/label-digest=a57390dc6cf1a5876519e4f3ae417dd85ea42783,jenkins/label=kubepod,jenkins=slave root@ip-172-31-40-194:~/.kube# ==================================================================== root@ip-172-31-40-194:~/.kube# kubectl describe pod kube-mxhvv | tail Node-Selectors: kubernetes.io/os=linux Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s node.kubernetes.io/unreachable:NoExecute for 300s Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 91s default-scheduler Successfully assigned default/kube-mxhvv to kworker1 Normal Pulled 91s kubelet, kworker1 Container image "jenkinsci/jnlp-slave:latest" already present on machine Normal Created 90s kubelet, kworker1 Created container jnlp Normal Started 90s kubelet, kworker1 Started container jnlp root@ip-172-31-40-194:~/.kube#
@abhishekdk5040
@abhishekdk5040 4 жыл бұрын
hello sir, i started jenkins locally ( as a windows service not in docker ) and minikube started. but when i run the job the commands given in executable shell is not executed inside pod but in windows host. can you help me with this?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Abhishek, thanks for watching. When creating the job, please specify the node label to target the pod. So when configuring the Kubernetes plugin in Jenkins, you had given the pod details. You will also have option to set labels there. And in the job configuration you have to specify that label so the job gets executed only on the node with that label. Hope it makes sense. Or temporarily you can set the number of executors in jenkins master to 0 and the job will be launched on the pod. Cheers.
@VisitBadi
@VisitBadi 3 жыл бұрын
Awesome 👍. Could you please try with rancher also I mean Jenkins,rancher and kubernetes setup
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Hi Gandhi, thanks for watching. i will give it a try. The process should be very similar to this one. Cheers.
@its-me-reddy
@its-me-reddy 3 жыл бұрын
For example if I installed kubernetes on one mechine and Jenkins is in another mechine, that time how can I put the kube config file in Jenkins
@abhishekdk5040
@abhishekdk5040 4 жыл бұрын
hi , i tried doing the same putting the kube config file , its saying cannot find path even though its there, i am doing in windows docker toolbox . any idea ?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Abhishek, thanks for watching. It may be that the path in Windows might be different. I haven't tried it on a Windows machine though.
@narendrabhupathiraju8986
@narendrabhupathiraju8986 4 жыл бұрын
hi venkat i set up my k8s cluster in vagrant box and im trying to connect with jenkins, but where can i find the config file nd how to configure.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Narendra, thanks for watching. You can find the kubernetes config file in the master node kmaster at /etc/kubernetes/admin.conf.
@daherdaher2560
@daherdaher2560 2 жыл бұрын
Great job, thanks
@justmeandopensource
@justmeandopensource 2 жыл бұрын
Hi Daher, Thanks for watching.
@raghavendravenkat4274
@raghavendravenkat4274 2 жыл бұрын
if we have a Jenkins server deployed through EKS, One remote server was Ubuntu and another one was ArchLinux. It was working fine with public keys to ssh before but now it says connection timeout. Is there a way to establish ssh connection and connect those two remote servers with this Jenkins service?
@rans1461
@rans1461 2 жыл бұрын
Please in which of your videos do you explain how to set up the Jenkins server to run inside the Kubernetes cluster?
@justmeandopensource
@justmeandopensource 2 жыл бұрын
Hi, thanks for watching. Please see the below playlist where you will find few videos on running Jenkins in kubernetes cluster. kzbin.info/aero/PL34sAs7_26wOuDEArkiGHjWtitsLsxGCL
@vatcharinkongsakul4478
@vatcharinkongsakul4478 4 жыл бұрын
Hi Venkat I can use Jenkins on Kubernetes or use on Jenkins server (not in Kubernetes). I don't know What are the best practices?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Vatcharin, Thanks for watching this video. Each approach has its own benefits. If you have an existing Kubernetes cluster and wanted to containerize and move all the applications you manage into Kubernetes, then you can move it. There are lots of advantages of running any application in a Kubernetes environment or in general any container platform. Scalability is one such advantage. For example if you application is getting more traffic, you can just scale the number of replicas/instances of your application. There are also auto-scaling options. You can de-couple application and storage by using persistent volumes. Lot more advantages are there. Cheers.
@itsmattprado
@itsmattprado 4 жыл бұрын
Thanks for your help, man!! That's a great tutorial! I'm getting this error from jenkins project configuration: Label kubepods is serviced by no nodes and 1 cloud. Permissions or other restrictions provided by plugins may prevent this job from running on those nodes. Has anyone faced this error too?
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Hi Mateus, thanks for watching. Sorry for the late response. Probably you must have resolved it by now. "Label kubepods is serviced by no nodes and 1 cloud" is just a message saying that kubepod is a dynamic slave and will be launched by the cloud plugin.
@sarfarazshaikh
@sarfarazshaikh 4 жыл бұрын
Hi Sir, What is the "workspace volume" inside kubernetes-cd plugin ? Does it mounts the volume in jnlp-slave container.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
HI Sarfaraz, thanks for watching this video. Where do you see "workspace volume"? I just watched this video and couldn't find that in the kubernetes plugin. There is working directory under the container configuration. Or there is volumes in the pod configuration section. I am not sure which one you are referring to.
@sarfarazshaikh
@sarfarazshaikh 4 жыл бұрын
@@justmeandopensource I have created the screenshot. Here is the url :- drive.google.com/file/d/103oo6FjMXYeUMpdWW0-p-M0Cr8bKlW8O/view?usp=sharing
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi, thats the persistent volume. It depends on where you want to mount the volume inside your containers. In that configuration, you will specify where to mount the volume. Cheers.
@padamkirankumar832
@padamkirankumar832 4 жыл бұрын
hi venkat, how can i access my kubernetes(public IP not local IP ) via Jenkins , i am facing ssl handshake error , i intialize kubernetes with local IP
@pasupalavenkatesh3633
@pasupalavenkatesh3633 4 жыл бұрын
Hi Venkat, I would like to know information that you have used some keyword (DATA+OMITTED, REDACTED) in kuberconfig file. Could you elaborate for those key words.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Pasupala, thanks for watching. Sorry, didn't get you. May I know exactly what you are asking for please? Cheers.
@karimfadl7067
@karimfadl7067 4 жыл бұрын
A great video Keep going man. Do you have any solution to connect jenkins with EKS ? EKS depends on IAM Authenticator for connecting, but I cannot find a solution to integrate jenkins with EKS
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Karim, thanks for watching this video. I haven't played with EKS yet. Its on my list though. I will definitely look into it. Cheers.
@derk6831
@derk6831 4 жыл бұрын
Me too... Let me if you find something on aws eks and jenkins
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@derk6831 May I know exactly what you guys want to achieve? Where is your jenkins running? You want to add Kubernetes plugin to your jenkins and launch slave pods inside EKS cluster?
@karimfadl7067
@karimfadl7067 4 жыл бұрын
​@@justmeandopensource Jenkins running in separate VM, and using kubeconfig plugin to connect to eks cluster. because of eks depend on IAM Authenticator, jenkins can't update or deploy pods. I think the solution of that, if you install jenkins on eks cluster itself through helm for example, maybe i am wrong. I moved my work to using kops because of this issue.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@karimfadl7067 HI Karim, I never got to this point as I haven't tried connecting Jenkins to EKS cluster. There are workarounds as described in this thread like configuring aws cli. issues.jenkins-ci.org/browse/JENKINS-52593 Thanks
@RaviKumar-em8fx
@RaviKumar-em8fx 9 ай бұрын
Hi sir , need helpful in this issue :Waiting for agent to connect . what cause the issue , can you help on this. I have launched Jenkins master on ec2 and eks cluster both are sperate ones
@FunkyAhamed
@FunkyAhamed 4 жыл бұрын
Hi Venkat, I'm looking for the same topic for last one week and finally I got this. I've jenkins on my GCP VM and I created a k8s cluster. I'm trying to import the kubeconfig file in my jenkins, I'm getting an error on test connection. My Jenkins and K8s master on same zone and can able to communicate. Do you have any guess why the test is failing ? Thanks Error "Error testing connection : javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Ahamed, thanks for watching this video. Starting from 6:46 in this video, I showed the cloud configuration for Kubernetes plugin. Have you added the credentials with kube config as shown in this video. If you added the credentials you wouldn't see that error. Or you can try to tick the check box that says "Disable https certificate check" Thanks.
@sruthikolipaka3562
@sruthikolipaka3562 2 жыл бұрын
can we push ecr images to eks using jenkins ?
@vini007mca1
@vini007mca1 4 жыл бұрын
Hi Venkat, thanks a lot for this video, BTW do you have video on YAML, which you mentioned in other video [Kube7 Kubernetes Pods Replicasets & Deployments] . i really appreciate your efforts for making kubernetes easy to learn.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Vinay, thanks for watching this video. I haven't done any video specifically for yamls. May I know what you are looking for? Thanks.
@vini007mca1
@vini007mca1 4 жыл бұрын
@@justmeandopensource Hi Venkat, i was looking for tips and tricks on YAML, which will be helpful for writing kubernetes manifest file from scratch.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Most people don't generally write manifests from scratch. Atleast I don't do it. I will do a dry-run to generate the yaml and modify it to my needs. Example: If I want to create an yaml for a deployment, I would run this command $ kubectl create deploy nginx --image nginx --dry-run -o yaml > /tmp/nginx.yaml And update /tmp/nginx.yaml. The below blog post explains some useful stuff/best practices about yaml, which might be of help to you. www.mirantis.com/blog/introduction-to-yaml-creating-a-kubernetes-deployment/ Thanks.
@vini007mca1
@vini007mca1 4 жыл бұрын
@@justmeandopensource thanks a lot for the tip, this is exactly what i was looking for, now i can easily modify the manifest file. :)
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@vini007mca1 Cool.
@user-ow5vr5nz4r
@user-ow5vr5nz4r 9 ай бұрын
the vedio is very in formative. but i have a doubt cant we do this process without spining a pod what i mean is cant we run our jobs with in the pipeline? sorry for this question i am new to k8s.
@copyninjagaming5193
@copyninjagaming5193 2 жыл бұрын
hi i am not able to connect to cluster using config file . Getting request timeout any solution . i have both local instance for jenkins and cluster
@MannuKumar-qh2sw
@MannuKumar-qh2sw 3 жыл бұрын
Hello Pls make a video regd. how to deploy helm chart using/through CI/CD on kubernetes cluster.
@KiranKumar-st9oc
@KiranKumar-st9oc 3 жыл бұрын
Even I need this
@saurabhgoreamazing9368
@saurabhgoreamazing9368 2 жыл бұрын
Great video . Tried implementating it . My jenkins was in local machine and kuberntes master node was created in a vm. So the node label was not matching . Then I installed jenkins on the vm. it does not show kubernetes plugin. Hence cannot configure the kuberentes cloud . Can you provide a solution?
@justmeandopensource
@justmeandopensource 2 жыл бұрын
Kubernetes plugin not showing up is a concern. plugins.jenkins.io/kubernetes/ Its a standard plugin that you should be able to add to your Jenkins without any issues.
@yogitajadon336
@yogitajadon336 4 жыл бұрын
Hi Venkat, I have to connect my Jenkins with Cluster running in GKE. Can you help me with the Jenkins manage configuration part to configure Jenkins if possible.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Yogita, it should be the same process as shown in this video. Which part didn't work for you or how far have you tried?
@yogitajadon336
@yogitajadon336 4 жыл бұрын
@@justmeandopensource Just me and Opensource Actually I have one task assigned that is to deploy an application on GKE using Jenkins declarative pipeline. For this I first need to connect my Jenkins to GKE cluster which is already created by cloud team(I have full access to cluster I'm using cloud SDK to access cluster) now in Jenkins manage configuration when I add kubernetes cluster it asks me for kubernetes server certificate key and credentials but I'm not sure what certificate I should copy here and what credentials should be used. As per your demo in video you have uploaded .kube/config file here I'm not sure if I can also do the same.
@yogitajadon336
@yogitajadon336 4 жыл бұрын
@@justmeandopensource thank you for quick response
@ajaysh9
@ajaysh9 3 жыл бұрын
Sir, let us know, how to create Kubernetes Cluster. This Video was very informative...
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Hi, thanks for watching. Cheers.
@xueyuanzang5179
@xueyuanzang5179 4 жыл бұрын
I want to know what system do you use? Could you tell me?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Xeuyuan, thanks for watching. Did you mean, what machine I use? I use a Laptop which is Dell XPS 9370 13inch with 16 GB Ram and 8 CPU. Thanks.
@rizwanshaikh7578
@rizwanshaikh7578 2 жыл бұрын
Can you please make video on argocd image updater , how can we implement?
@justmeandopensource
@justmeandopensource 2 жыл бұрын
Hi Rizwan, thanks for watching. I will add it to my list. I have got a lot to cover in my list and I am going by the requested order. I will see if I can get to this at some point. Cheers.
@venkateshpakanati2103
@venkateshpakanati2103 4 жыл бұрын
which service assigns nameservers under /etc/resolv.conf of pods , generally it should pickup from host /etc/resolv.conf , i'm seeing different nameservers under /etc/resolv.conf of pods, is there is any configuration on kbernetes(kubedns) which i can configure so that pods /etc/resolv.conf have 8.8.8.8
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Venkatesh, as per the documentation, if poddnspolicy is set to default, it will inherit the resolv.conf from the node its running. We should be able to customize it. I will explore it tomorrow and let you know. Thanks.
@venkateshpakanati2103
@venkateshpakanati2103 4 жыл бұрын
Thanks
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@venkateshpakanati2103 you are welcome. Cheers.
@gkv2306
@gkv2306 3 жыл бұрын
Hi I have a query regarding the Jenkins script 1. I want to run a Jenkins script which gets executed every day from 9: 30 PM Monday to Friday and pause the GCP node pool and also the SQL database 2. And also one more script which gets excited at every day 9: 30 AM Monday to Friday and resume the GCP node pool and also the SQL database without changes in cluster 3. the Second query I have an artifact and my application is running in multi-cloud on GCP, AWS, Azure through Jenkins in an automated way that artifact should move at the same time into all application servers feel free to wait for ur guidance.
@ManpreetSingh-qe8wn
@ManpreetSingh-qe8wn 3 жыл бұрын
For passing the kubeconfig file, If I am creating a parameterized job that can be used by multiple people each having different config files, how can I pass this parameter value (i.e. the path to kubeconfig file to 'Kubernetes CLI' part. I don't want the users to 'Configure' the job. They should only be able to 'Build with Parameter' and pass the kubeconfig file to a parameter. Any way to accomplish this?
@MaheshRagamsetty
@MaheshRagamsetty Жыл бұрын
Hi, After restartingJenkins the settings which we have given in Configure cloud gets reset to default. How to make it as permanently?
@surendramishra-fs1wt
@surendramishra-fs1wt 4 жыл бұрын
Many thanks Venkat, Finally I got this videos to connect Jenkins to cluster which is running on separate instance on GCP. One more request I have built image and push to docker container using jenkins pipeline but I am not able to deploy it to the cluster. Could you please illustrate me to how to write final stage to deploy image in scripted pipeline, I already have deployment.yml and service.yml.....stage('Deploy to Kubernetes'){........} Thanks in advance
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Surendra, thanks for watching. As long as you have the right kubeconfig file added to Jenkins credentials, you can deploy your app through pipeline to the cluster. kzbin.info/www/bejne/anabYZp7mtNgpZI
@fabianocunha5662
@fabianocunha5662 3 жыл бұрын
For u guys that have a problem related to the Jenkins Tunnel, just click on the websocket option and the problem will be solved ;)
@nirushanthnirmalaraj5
@nirushanthnirmalaraj5 3 жыл бұрын
Hi Fabiano. It worked
@Han-ws8he
@Han-ws8he 2 жыл бұрын
I don't get your jenkins tunnel definition. You used the your host address but did you have port 50000 to be open for externally at cluster level?
@justmeandopensource
@justmeandopensource 2 жыл бұрын
Hi, thanks for watching. Jenkins was running on my local machine as docker container binding ports 8080 and 50000 to my host and kubernetes cluster was again running on virtual machines on my local host and it can connect to 50000 on my local host to get to 50000 on the jenkins container. Hope it makes sense. Cheers.
@Han-ws8he
@Han-ws8he 2 жыл бұрын
@@justmeandopensource Ok that make sense, I thought your jenkins was on the kubernetes cluster as well.
@neogodssontimounabondye
@neogodssontimounabondye 3 жыл бұрын
Thanks a lot for you videos, I hava a problem, all my pôds is offline, i see pods in K8S , but is offline on jenkins, in the logs off jenkins i have : Failed to connect to http:ip//:8080/tcpSlaveAgentListener/: connect timed out
@manikandans8808
@manikandans8808 4 жыл бұрын
In a multi branch pipeline job how can I use conditions based on branches in a single Jenkinsfile..ie., if branch is master these steps has to be done and if test these steps has to be done like wise...can you pls tell me that?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Mani, You can use if conditions and check the branch name which is an environment variable in a pipeline environment and do steps accordingly. if(env.BRANCH_NAME == 'master') { // Deploy steps here } Thanks
@manikandans8808
@manikandans8808 4 жыл бұрын
@@justmeandopensource pipeline { agent none stages ('develop') { if (env.BRANCH_NAME == 'develop') { agent { label 'develop' } steps { echo " this is depolyed in Dev agent" } } } } The above code is correct? it gave me => not a valid stage section definition.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@manikandans8808 I will have a look at it later today.
@manikandans8808
@manikandans8808 4 жыл бұрын
@@justmeandopensource thanku so much...
@justmeandopensource
@justmeandopensource 4 жыл бұрын
You can also use "when" and there is solution mentioned in the below stackoverflow page. stackoverflow.com/questions/37690920/conditional-step-stage-in-jenkins-pipeline Thanks.
@abhishekdk5040
@abhishekdk5040 4 жыл бұрын
hi sir, I did the same as you did in windows with minikube started, but i get ERROR: Node is not a Kubernetes node:
@justmeandopensource
@justmeandopensource 4 жыл бұрын
HI Abhishek, thanks for watching. At what point you are getting this error and where you are getting this error?
@matieuhoa8
@matieuhoa8 2 жыл бұрын
Thanks you very much for your shared. I'm a beginer, could you share me the way to connect jenkins with argocd, i want to use argocd to deploy app on jenkinsfile.
@justmeandopensource
@justmeandopensource 2 жыл бұрын
Hi Hung, thanks for watching. I don't think I have done any videos connecting Jenkins with ArgoCD. I will see if I can do one. Cheers.
@matieuhoa8
@matieuhoa8 2 жыл бұрын
@@justmeandopensource ,Thanks you I'm looking forward your new video :D
@justmeandopensource
@justmeandopensource 2 жыл бұрын
@@matieuhoa8 You are welcome.
@jayateerthmirji1736
@jayateerthmirji1736 3 жыл бұрын
Hi How do I give the config file ? I have it in my Linux machine on AWS not in my local windows machine .
@srinivasareddy7530
@srinivasareddy7530 4 жыл бұрын
Hi Venkat, I tried to replicate the same by using my setup. I have a jenkins Server and a k8s cluster. Everything working till pod creation by using jnlp-slave images. but not able to allocate that pod as a jenkins slave. agent not running automatically. It is giving some commands with secret keys and after 100 sec, pod is evicting.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Srinivasa, thanks for watching this video. It would be helpful if you can paste the output of jenkins logs and anyother useful information in pastebin.com and share it. I can try this video again this weekend to see if it still works. Cheers.
@srinivasareddy7530
@srinivasareddy7530 4 жыл бұрын
@@justmeandopensource Thanks Venkat. I given a try again with different CNI (Weave) working as expected. Earlier I used flanner CNI didn't work as expected.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@srinivasareddy7530 Cool.
@anjalilokare625
@anjalilokare625 4 жыл бұрын
I have added credential of type Kubernetes configuration , why that is not visible on configure cloud-credentials list?????
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Anjali, thanks for watching. Did you follow the same steps as shown in this video. If not, I can't comment on it right now until I try it in my environment.
@ambrishpatil4352
@ambrishpatil4352 3 жыл бұрын
This will work if my k8s cluster is of EKS?
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Hi Ambrish, thanks for watching. It should work in EKS cluster as well.
@selfmeditation6156
@selfmeditation6156 4 жыл бұрын
Is it need to install jnlp-agent.jar in pods
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Srikanth, what is required at a bare minimum is what I showed in this video. Anything not shown in this video is not mandatory. Cheers.
@ravipamarthy
@ravipamarthy 4 жыл бұрын
Great Videos. I have followed as per the video. When i trigger the Jenkins job, i get (pending-‘Jenkins’ doesn’t have label ‘kubepods’) and then (pending -kube-xxxxx is offline) but the Jenkins job never completes. I see that the Jenkins slave pods are running and then destroyed and new pod gets created after sometime and the same cycle continues. Jenkins job is only creating pods but does not executes the job.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Ravi, thanks for watching. I have had that problem couple times. Have a look in the jenkins logs and see why the slave pods are being terminated as soon as its launched. Its usually because of some configuration errors in the kubernetes plugin in Jenkins. Make sure to use the right slave image and mount volumes and all the configurations I explained in this video.
@danielcanizalez8558
@danielcanizalez8558 4 жыл бұрын
Hi any solutions for this? i try to change the docker image and produce the same error.
@vachi1111
@vachi1111 3 жыл бұрын
Same problem here. any solution ?
@kirankumarpadam4854
@kirankumarpadam4854 2 жыл бұрын
hi venkat, my pod is running after few seconds it is going to exit mode ,please help me
@avinashsonawane8145
@avinashsonawane8145 4 жыл бұрын
I have setup CICD pipeline and each tool run on seprate VM.Uptil build docker image and pushing to the docker registry automation is done i am not figure out how deploy on kubernetes cluster i have one master and 2 worker node. still now i am manually pull docker image and run the pod. Can you give me any solution on that how can automate deployment on kubernets cluster?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Avinash, thanks for watching. See if the below videos help. kzbin.info/www/bejne/jGXOipV-obaMfsk kzbin.info/www/bejne/anabYZp7mtNgpZI Cheers.
@yashhirulkar909
@yashhirulkar909 3 жыл бұрын
sir if i hav my k8s cluster on cloud , in k8s config file do i need to put private ip or pubic ip in server ip ?
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Hi Yash, thanks for watching. Did you set up the cluster yourself in the cloud or are you using managed kubernetes service where the cloud provider manages the control planes while you are in control of the worker nodes? The kubeconfig file is auto generated and will have the reachable ip address of the control planes. It can either be public or private ip of the control planes depending on whether you are exposing your cluster to the internet or if its going to be internal.
@yashhirulkar909
@yashhirulkar909 3 жыл бұрын
@@justmeandopensource thank u sir got it ...!
@justmeandopensource
@justmeandopensource 3 жыл бұрын
@@yashhirulkar909 You are welcome.
@DetectiveOfLove
@DetectiveOfLove 3 жыл бұрын
Hi, I tried to setup my Jenkins using EC2 and Minikube using separate EC2. I followed your tutorial to connect this Jenkins to Minikube but got this error "Error testing connection 10.0.0.58:8443: java.nio.file.AccessDeniedException: /root/.minikube/ca.crt" when i tried to test connection (minute 8.40 in your video), can you give me a light on my issue? Thank you
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Hi Aris, thanks for watching. Yeah I am aware of this. The kubeconfig file for minikube doesn't contain the actual certificates instead path to the certificate and if you used that in Jenkins configuration for credentials, it couldn't connect to the minikube kubernetes. I haven't worked it out yet.
@karthikbharadwaj6195
@karthikbharadwaj6195 3 жыл бұрын
Hi I need a help. I have added a new node to the existing kubernetes cluster. I want to test a jenkins job to run on that node. I created a new pod template with a label and configured that label on the new node in kubernetes. But when I trigger the job I see the pod gets created on an existing node and not on the new node. How to fix this ?
@justmeandopensource
@justmeandopensource 3 жыл бұрын
You should be able to do that by specifying nodeselector or nodeaffinity in the jenkins slave pod template configuration. I don't have this setup right now to test that but its doable.
@karthikbharadwaj6195
@karthikbharadwaj6195 2 жыл бұрын
@@justmeandopensource thanks, that worked
@justmeandopensource
@justmeandopensource 2 жыл бұрын
@@karthikbharadwaj6195 Cool. No worries.
@sakshirathore4670
@sakshirathore4670 4 жыл бұрын
Hi Great video .thanks for this. i have followed the process but cant access jenkins url localhost:8080 i am new to kubernetes can you please help.
@manikandans8808
@manikandans8808 4 жыл бұрын
Hi venkat, how can run docker alpine slave bcoz it show the docker runtime error for me. Is there different way configure it?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
HI Mani, I think you got this sorted already. Basically any container image you choose, must have docker binary installed and you will be using the docker runtime from the worker node by mounting /var/run/docker.sock from underlying machine to the container.
@manikandans8808
@manikandans8808 4 жыл бұрын
@@justmeandopensource yes Venkat I sorted it out. I didn't notice the volume mount tab in docker template later I found it. Now it's resolved. Cheers 🥳🥳🥳🥳
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@manikandans8808 Cool
@manikandans8808
@manikandans8808 4 жыл бұрын
@@justmeandopensource I have added the config file in the secret but its not showing in the drop-down box. In free style --> kube config job.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@manikandans8808 If you added the credential, it will be available for you from the dropdown. On another tab, open the credentials page and see if it was indeed added.
@venkateshpakanati2103
@venkateshpakanati2103 4 жыл бұрын
do we need to assign 50000 port to TCP agent port under global secuity of jenkins or it should be random port.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Venkatesh, thats the port on the Jenkins server that all slaves connect to via jnlp protocol.
@venkateshpakanati2103
@venkateshpakanati2103 4 жыл бұрын
thanks
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@venkateshpakanati2103 you are welcome
@venkateshpakanati2103
@venkateshpakanati2103 4 жыл бұрын
I'm facing below error Warning: JnlpProtocol3 is disabled by default, use JNLP_PROTOCOL_OPTS to alter the behavior Oct 31, 2019 7:44:27 AM hudson.remoting.jnlp.Main createEngine INFO: Setting up agent: pod-2e388cc9-3a98-47da-aa0d-5910f5bb921d-test-7v5k7-p31s7 Oct 31, 2019 7:44:27 AM hudson.remoting.jnlp.Main$CuiListener INFO: Jenkins agent is running in headless mode. Oct 31, 2019 7:44:27 AM hudson.remoting.Engine startEngine INFO: Using Remoting version: 3.35 Oct 31, 2019 7:44:27 AM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir INFO: Using /home/jenkins/agent/remoting as a remoting work directory Oct 31, 2019 7:44:27 AM org.jenkinsci.remoting.engine.WorkDirManager setupLogging INFO: Both error and output logs will be printed to /home/jenkins/agent/remoting Oct 31, 2019 7:44:27 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [] Oct 31, 2019 7:44:27 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Agent discovery successful Agent address: 127.0.0.1 Agent port: 50000 Identity: b3:33:3c:07:f5:fc:21:c7:11:80:02:f6:28:4c:27:05 Oct 31, 2019 7:44:27 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Oct 31, 2019 7:44:27 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to 127.0.0.1:50000 Oct 31, 2019 7:44:37 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to 127.0.0.1:50000 (retrying:2) java.io.IOException: Failed to connect to 127.0.0.1:50000 at my configuration is as below, i enabled fixed TCP port and also i hadn't mentioned any jenkins url & jenkins tunnel url under kubernetes cloud Agents TCP port for inbound agents Fixed : 50000 Random Disable
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@venkateshpakanati2103 Why didn't you specify the jenkins url or tunnel in the cloud configuration? That is the way agent will find the master jenkins. From looking at the error you posted, the agent seems to be connecting to 127.0.0.1:50000. It should be connecting to master node on port 50000.
@HeyMani92
@HeyMani92 3 жыл бұрын
I got this error "0/3 nodes are available: 3 node(s) didn't match node selector "
@HeyMani92
@HeyMani92 3 жыл бұрын
could you ple help me bro
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Hi Mani, thanks for watching. You can check kubectl describe command which will tell you why the nodes can't take this load. It might be that the nodes doesn't have sufficient memory.
@srivatsamarichi2536
@srivatsamarichi2536 4 жыл бұрын
What should go in the Jenkins Tunnel if we're running inside the pods?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Didn't understand you. Can you explain in a bit more detail please? Thanks.
@srivatsamarichi2536
@srivatsamarichi2536 4 жыл бұрын
I’m running Jenkins in a k8s cluster on NFS servers. So what is the configuration for Jenkins? What IP address should go in?
@srivatsamarichi2536
@srivatsamarichi2536 4 жыл бұрын
Is it the cluster IP, or the external ip or pod ip
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@srivatsamarichi2536 Okay. So you want Jenkins Tunnel in jenkins agent configuration in the Kubernetes plugin. It depends on where your Jenkins server is. If the jenkins server is also running inside the cluster, you can use the clusterIP:50000 of the jenkins service. If you are using jenkins outside k8s cluster, then the ip address of the jenkins server. This video is about connecting your existing Jenkins server (that is outside the k8s cluster) to your k8s cluster and run jenkins agents inside the cluster. I have specified the Jenkins Tunnel configuration at 10:10 I have also done a video on running Jenkins inside the k8s cluster. kzbin.info/www/bejne/hZOqg2N7m7uDosk Jenkins Tunnel will be the clusterip of the jenkins service. Cheers.
@srivatsamarichi2536
@srivatsamarichi2536 4 жыл бұрын
Cool. I tried specifying the clusterip:50000 in the Jenkins tunnel. The JNLP pod comes up in a suspended mode without running any job. When I see the logs, it's referring 2 images and creating 2 pods. Don't know why it's referring 2 places to pull the images from. It's looking at jenkins-jnlp-slave & jenkins/jnlp-slave:alpine where as I don't even have the image with the tag alpine :-(
@surendramishra4813
@surendramishra4813 4 жыл бұрын
Hi Venkat, I am able to connect with the cluster and deployed my docker image container successfully but my kube config token suddenly expired, I am very frustrated and not able to deployed again due to kube config token expired... please help
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Surendra, thanks for watching. I don't understand when you say token expired. You are using the same kubeconfig file (or text from that file) which you are using with kubectl to connect to the cluster. If you can use kubectl with the kubeconfig you have got, it should work with jenkins credentials. If not, please download a valid kubeconfig file and use it with Jenkins.
@surendramishra4813
@surendramishra4813 4 жыл бұрын
@@justmeandopensource Thanks for reply, I have created Global Credential in jenkins and paste there Kubeconfig cluster content from Kubeconfig file, but after one or two deployment the kubeconfig credential got expired If you will see last 4 and 5 th line of below config, there is expiry date of credential which is very short I have also used cluster with associated service account but that is also not working ----------------------------------------------------------KubeConfig Text---------------------------------------------------------------------------------- apiVersion: v1 clusters: - cluster: certificate-authority-data: ***** server: *.*.*.* name: abcd contexts: - context: cluster: **** user: *** name: *** current-context: gke_sunlit-analyst-271208_asia-southeast1-b_onetoonejpa kind: Config preferences: {} users: - name: gke_sunlit-analyst-271208_asia-southeast1-b_onetoonejpa user: auth-provider: config: access-token: ya29.a0Ae4lvC2ig7mCnv64GxqB9iIbT4cavi3mIGNMwEClaWmM0bjgnkKqtoVh-azlUsf8pg2lqVhTk_zZyRDZQzzvsYhQN11LeN_Xk-IX7mnn1rwNkEVmy7zLtBuPb5QbvLVQeINX9PbPxHr2t9Hxg4UVZa68fQefAueeSsx01Tvk-9Sju96TP9OCISxWaadIKgW_lPDeE49Udxr-21DE6PxG80wU-tVbs6zQG0rChz90v3Vq63pz1bGZvngOjGo3aJPtF91xaBo4CLHiPA cmd-args: config config-helper --format=json cmd-path: /google/google-cloud-sdk/bin/gcloud expiry: "2020-04-04T11:15:13Z" expiry-key: '{.credential.token_expiry}' token-key: '{.credential.access_token}' name: gcp ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- due to this, after one or two deployment, I am getting exception in jenkins like as below Starting Kubernetes deployment ERROR: ERROR: java.lang.IllegalStateException: Unimplemented hudson.remoting.ProxyException: java.lang.IllegalStateException: Unimplemented at io.kubernetes.client.util.authenticators.GCPAuthenticator.refresh(GCPAuthenticator.java:61) at io.kubernetes.client.util.KubeConfig.getAccessToken(KubeConfig.java:213) Thanks in advanced
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@surendramishra4813 Ah I see. Yeah these kube config files contain time limited token. How is your k8s cluster provisioned? Do you have admin control?
@jinojosepp
@jinojosepp 4 жыл бұрын
Hi Venkat, When I try to test the connection from jenkins I am getting an error like below: "okhttp3.internal.http2.ConnectionShutdownException: null" Jenkins log says like this : "2020-06-17 12:49:59.978+0000 [id=15] WARNING i.f.kubernetes.client.Config#tryServiceAccount: Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring." Do you have any idea, Thanks.
@akshay_metgud
@akshay_metgud 3 жыл бұрын
Hi Venkat, super video on kubernetes. with respect to this playlist-im unable to complete this lab and getting this error "waiting for agent to connect (30/100): kube-mmlpj" and it never connects.
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Hi Akshay, thanks for watching. Have a look in the jenkins log /var/log/jenkins/jenkins.log. Do you see the slave pod getting launched and then terminated and it goes on in an infinite loop? It usually happens when you have the slave pod configuration in Kubernetes Cloud plugin configuration incorrect. You might have missed something. Please double check.
@akshay_metgud
@akshay_metgud 3 жыл бұрын
@@justmeandopensource - thank you venkat..i replicated the settings seeing this playlist and I believe that I'm not missing anything...but any how let me double check and get back to you!!
@akshay_metgud
@akshay_metgud 3 жыл бұрын
is still see same error:-- ****************logs********************** NAME READY STATUS RESTARTS AGE kube-69sg1 0/1 Pending 0 0s kube-69sg1 0/1 Pending 0 0s kube-69sg1 0/1 ContainerCreating 0 0s kube-69sg1 0/1 ContainerCreating 0 0s kube-69sg1 1/1 Running 0 2s ^C[root@kmaster kmaster]# kubectl get pods -w NAME READY STATUS RESTARTS AGE kube-69sg1 1/1 Running 0 21s ^C[root@kmaster kmaster]# kubectl get pods -w NAME READY STATUS RESTARTS AGE kube-69sg1 1/1 Running 0 31s ^[[Akube-69sg1 0/1 Error 0 32s ^C[root@kmaster kmaster]# kubectl get pods -w NAME READY STATUS RESTARTS AGE kube-69sg1 0/1 Error 0 35s ^C[root@kmaster kmaster]# ^C [root@kmaster kmaster]# kubectl describe pods kube-69sg1 Name: kube-69sg1 Namespace: default Priority: 0 Node: knode1/192.168.0.114 Start Time: Mon, 05 Oct 2020 10:15:24 +0000 Labels: jenkins=slave jenkins/kubepods=true Annotations: cni.projectcalico.org/podIP: 192.168.195.131/32 cni.projectcalico.org/podIPs: 192.168.195.131/32 Status: Failed IP: 192.168.195.131 IPs: IP: 192.168.195.131 Containers: jnlp: Container ID: docker://810ada5058e787db9f8cbac49a5f3bf4e164e38888431a9027ccd25c36ff609d Image: jenkins/jnlp-slave:latest Image ID: docker-pullable://jenkins/jnlp-slave@sha256:5463a24be3ba75de403cef5593695604cb775e286db2d6c59450846b624635c8 Port: Host Port: State: Terminated Reason: Error Exit Code: 255 Started: Mon, 05 Oct 2020 10:15:25 +0000 Finished: Mon, 05 Oct 2020 10:15:56 +0000 Ready: False Restart Count: 0 Environment: JENKINS_SECRET: cc66380d439f1a477cd8464c864c953afa8f095e923da5939408dbf6fcda2428 JENKINS_TUNNEL: 192.168.0.100:50000 JENKINS_AGENT_NAME: kube-69sg1 JENKINS_NAME: kube-69sg1 JENKINS_AGENT_WORKDIR: /home/jenkins/ JENKINS_URL: 192.168.0.100:8080 Mounts: /home/jenkins/ from workspace-volume (rw) /var/run/secrets/kubernetes.io/serviceaccount from default-token-vh9tx (ro) Conditions: Type Status Initialized True Ready False ContainersReady False PodScheduled True Volumes: workspace-volume: Type: EmptyDir (a temporary directory that shares a pod's lifetime) Medium: SizeLimit: default-token-vh9tx: Type: Secret (a volume populated by a Secret) SecretName: default-token-vh9tx Optional: false QoS Class: BestEffort Node-Selectors: beta.kubernetes.io/os=linux Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s node.kubernetes.io/unreachable:NoExecute for 300s Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 48s default-scheduler Successfully assigned default/kube-69sg1 to knode1 Normal Pulled 48s kubelet, knode1 Container image "jenkins/jnlp-slave:latest" already present on machine Normal Created 47s kubelet, knode1 Created container jnlp Normal Started 47s kubelet, knode1 Started container jnlp [root@kmaster kmaster]#
@justmeandopensource
@justmeandopensource 3 жыл бұрын
@@akshay_metgud I will give it a try later today and see if there is any issue with this video.
@akshay_metgud
@akshay_metgud 3 жыл бұрын
@@justmeandopensource -surething...thanks alot for your support...Just adding a note - do we need to taint a nodes??
[ Kube 25 Discussion 2 ] Deploying to Kubernetes cluster using Jenkins
19:31
Just me and Opensource
Рет қаралды 23 М.
[ Kube 25 Discussion 3 ] Connecting Jenkins to Minikube Kubernetes Cluster
16:27
Just me and Opensource
Рет қаралды 14 М.
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 15 МЛН
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 10 МЛН
MEU IRMÃO FICOU FAMOSO
00:52
Matheus Kriwat
Рет қаралды 44 МЛН
How to Use Kubernetes Pods As Jenkins Agents
25:15
CloudBeesTV
Рет қаралды 54 М.
[ Kube 49 ] Jenkins CI CD Pipeline in Kubernetes
48:22
Just me and Opensource
Рет қаралды 41 М.
[ Kube 25 ] Running Jenkins in Kubernetes Cluster using Helm
37:57
Just me and Opensource
Рет қаралды 41 М.
[ Kube 68 ] Kubernetes RBAC Demo | Creating Users and Roles
31:41
Just me and Opensource
Рет қаралды 59 М.
Running Jenkins In Kubernetes - Tutorial And Review
32:33
DevOps Toolkit
Рет қаралды 13 М.
Kubernetes - Create your own k8s cluster step by step
35:21
Mohamad Lawand
Рет қаралды 21 М.