CI CD Pipeline to Deploy to Kubernetes Cluster Using Jenkins | AWS DevOps Projects For Beginners

  Рет қаралды 33,254

Virtual TechBox

Virtual TechBox

Күн бұрын

Пікірлер: 94
@VirtualTechBox
@VirtualTechBox Жыл бұрын
Do visit to my DevOps Playlist👇 kzbin.info/aero/PLmSlOWkfkugmXU1WVTu_fmrOwjRAbbWvL
@AbhishekSingh-g9v3t
@AbhishekSingh-g9v3t Ай бұрын
Sir thank you so much itna achha explain karne ke liye.
@shamstabrez2986
@shamstabrez2986 Жыл бұрын
bhai no doubt ap awesome projects karwate h kuch projects microservices pr laiye na jiske andr kubernetes ka use ho r different services n components ek dusre se communicate krri ho
@VirtualTechBox
@VirtualTechBox Жыл бұрын
I will try.
@sagarlokhande2891
@sagarlokhande2891 Жыл бұрын
sir , hatts off your effoerts. i want to say one thing While doing the steps of the project, you should also have told why it has to be done this step ,so that we can understand it better.
@VirtualTechBox
@VirtualTechBox Жыл бұрын
If I do the this, video would gave become too long.
@surenkumars3181
@surenkumars3181 4 ай бұрын
really really cool man thankyou so much.... clear explanation for cicd
@2mahender
@2mahender Жыл бұрын
nice...do we need to configure github hooks, for automatic run of jenkins jobs?
@VirtualTechBox
@VirtualTechBox Жыл бұрын
Not required. We have given schedule in Poll SCM for every minute. It will verify the GitHub repo every min and if there is any change, it will trigger the job.
@ganeshv5580
@ganeshv5580 Жыл бұрын
Thank you. you made our life easy :)
@VirtualTechBox
@VirtualTechBox Жыл бұрын
You're Welcome.
@soumitrabose3277
@soumitrabose3277 Жыл бұрын
Hi sir, well project, learned a lot. One doubt: there are three Jobs created in Jenkins: Test Maven, CI and CD. In CI there is SCM Polling(*****) and GitHub repo mentioned, and as per post build its triggering the CD job. But I guess the Test maven job is missed. the CI job is not added to Test Maven.. Please correct me if I am wrong.
@VirtualTechBox
@VirtualTechBox Жыл бұрын
"Test-Maven-Build" Job was created & executed only to verify that Maven build is happening or not. At 43:55 we created "Copy_Artifacts_onto_Ansible" Maven Job and configured all settings of "Test-Maven-Build" into this Job also along with Ansible server settings. Later in the video "Copy_Artifacts_onto_Ansible" job has been renamed as "CI_Job".
@soumitrabose3277
@soumitrabose3277 Жыл бұрын
thanks sir, does it mean that in real time we do build only once to check if the war is getting created? as each time we do commit the Maven job will not get trigger if we dont use any hook or Poll SCM. So later when we commit in this particular video, its not getting the newly created war? As test Maven job only creating the war. Please correct me if I missed anything. Thanks in advance@@VirtualTechBox
@soumitrabose3277
@soumitrabose3277 Жыл бұрын
Or as the Copy artifacts job which is later CI job, is doing the build each time as its selected as Maven Project not freestyle or pipeline. As I am new bit confused.
@VirtualTechBox
@VirtualTechBox Жыл бұрын
@@soumitrabose3277 Every time you commit the code, CI Job get triggered through Poll SCM and you have new Maven build.
@VirtualTechBox
@VirtualTechBox Жыл бұрын
@@soumitrabose3277 CI Job is Maven job, upon every trigger it will create the new Maven build.
@sujithadr
@sujithadr Жыл бұрын
Expecting different projects similar to this
@VirtualTechBox
@VirtualTechBox Жыл бұрын
Will try.
@sumanprasad007
@sumanprasad007 Жыл бұрын
Amazing Project sir, and well explained each and every step @VirtualTechBox
@VirtualTechBox
@VirtualTechBox Жыл бұрын
@sumanprasad007 Thank You for your kind words.
@ZayanasLittleLion
@ZayanasLittleLion 9 ай бұрын
Thanks for making videos, do you have any video to setup CI/CD pipeline for a nodejs(with typescript) app with github, github actions, gcp cloud biuld, container registry, Docker, Kubernetes, not sure if terraform jenksins or mavin should also be used here , but we use new relic for monitoring and slack for notifications. Do you help one on one in settig it up ? ..We use GCP for servers and AWS for ML.
@VirtualTechBox
@VirtualTechBox 9 ай бұрын
Not yet. I will try to make.
@naren06938
@naren06938 Жыл бұрын
Fentastic project step by step without errors, i need same CICD jen-docker-nginx-k8s to deploy static website and same pipeline for React.Js, bcoz i have my own websites of html+css+js and React.js, i wish yo practice to deploy that by my own, plsss make that also sir
@VirtualTechBox
@VirtualTechBox Жыл бұрын
I will Try.
@lmduc_devops
@lmduc_devops 9 күн бұрын
Thanks you very much
@abbeydauda7747
@abbeydauda7747 5 ай бұрын
Thank you Prof Ashfaque, I love this but I got stuck because I did not see in the video where you installed awscli on the bootstrap server, also, immediately I did that and installed eksctl and I moved it to the bin folder my server keeps crashing, do I have to change the ec2 from t2.micro to t2.small or what?
@VirtualTechBox
@VirtualTechBox 5 ай бұрын
run below commands from root $ sudo yum remove -y aws-cli $ pip3 install --user awscli $ sudo ln -s $HOME/.local/bin/aws /usr/bin/aws $ aws --version
@bhanusritanneru9287
@bhanusritanneru9287 3 күн бұрын
Thank you
@gajananbarure4007
@gajananbarure4007 Жыл бұрын
Well explained!
@VirtualTechBox
@VirtualTechBox Жыл бұрын
Thank You @gajananbarure4007
@vsrvlogs5958
@vsrvlogs5958 Жыл бұрын
in last git have used webhook? for auto build u not shown in video
@VirtualTechBox
@VirtualTechBox Жыл бұрын
I haven't used GitHub Webhook, I have used Poll SCM Schedule to Trigger Pipeline.
@adnanrafique4785
@adnanrafique4785 Жыл бұрын
Hi,i have a question here if i have ubuntu OS then i follow the same command and process ??
@VirtualTechBox
@VirtualTechBox Жыл бұрын
You will have to follow same process but commands may be bit different.
@adnanrafique4785
@adnanrafique4785 Жыл бұрын
thx@@VirtualTechBox
@VirtualTechBox
@VirtualTechBox Жыл бұрын
@@adnanrafique4785 You're Welcome.
@mahesh-urz
@mahesh-urz 2 ай бұрын
The .war file was not copping to //opt//Docker file The build was success but the folder was still empty Cloud you please guide me 🙏
@prashlovessamosa
@prashlovessamosa Жыл бұрын
Thank you.
@VirtualTechBox
@VirtualTechBox Жыл бұрын
You're Welcome.
@manishkumawat011
@manishkumawat011 10 ай бұрын
Hello, can anyone you please help me with DockerFile understanding. I have not understood what last 2 lines is doing.
@VirtualTechBox
@VirtualTechBox 10 ай бұрын
2nd line will copy the tomcat webapps folder to image webapps folder. And 3rd line will copy the .war file from current workspace folder to image webapps folder.
@nihalsj-k7x
@nihalsj-k7x Жыл бұрын
@40:50 Publish over SSH is not there in my system
@VirtualTechBox
@VirtualTechBox Жыл бұрын
You need to install plugin called "publish over ssh" in your Jenkins.
@nihalsj-k7x
@nihalsj-k7x Жыл бұрын
@@VirtualTechBox thank you very much for the quick response ashfaque sir ❤ please continue the good work, may allah SWT bless you❤
@VirtualTechBox
@VirtualTechBox Жыл бұрын
@@nihalsj-k7x Thank you for your kind words.
@handsomevillian
@handsomevillian Жыл бұрын
goto manage jenkins > plugins > available plugins > search for publish over ssh > install
@prashanthbharadwaj5775
@prashanthbharadwaj5775 Жыл бұрын
Hello Ashfaque, I am getting the error in Kubernetes setup.. Error like Exec credential.. can you please help sir.. Also kindly share the document with commands list sir
@VirtualTechBox
@VirtualTechBox Жыл бұрын
This error comes due to aws cli version. From root user run below commands $ sudo yum remove -y aws-cli $ pip3 install --user awscli $ sudo ln -s $HOME/.local/bin/aws /usr/bin/aws $ aws --version All the command used in video are already available in description.
@vireshsolanki584
@vireshsolanki584 Жыл бұрын
you have create kubeconfig as well use aws eks kubeconfig documentation
@amiyakumarnayak6375
@amiyakumarnayak6375 Жыл бұрын
Hello sir why I'm getting Unstable build and can't able to push the image to docker hub ?
@VirtualTechBox
@VirtualTechBox Жыл бұрын
Is ur image getting build locally perfectly? If yes hen try to run container with it locally. Hope you have done the docker login from CLI.
@universe4d2002
@universe4d2002 Жыл бұрын
nice
@VirtualTechBox
@VirtualTechBox Жыл бұрын
Thank You.
@vsrvlogs5958
@vsrvlogs5958 Жыл бұрын
While copying artifact to ansible over SSH iam getting error (auth fail publickey,passwd ) showing unstable
@VirtualTechBox
@VirtualTechBox Жыл бұрын
Reconfigure the credentials on Jenkins for the server.
@sreekanth_ksk
@sreekanth_ksk 9 ай бұрын
Sir in realtime what is the Size of CI server we use ??
@VirtualTechBox
@VirtualTechBox 9 ай бұрын
Depends on the environment and requirement.
@allindiachannel2290
@allindiachannel2290 8 ай бұрын
can i also run react or nodejs file using this video ?
@VirtualTechBox
@VirtualTechBox 7 ай бұрын
Yes you can.
@manishkumawat011
@manishkumawat011 10 ай бұрын
you have downloaded EKSCT but link you have pasted from where ? how we can get that link
@VirtualTechBox
@VirtualTechBox 10 ай бұрын
Link & command I have provided in one repo which is available in description. github.com/Ashfaque-9x/Scripts/blob/main/DevOps-Project-with-Jenkins-Maven-and-Kubernetes.txt
@manishkumawat011
@manishkumawat011 10 ай бұрын
@@VirtualTechBox Thanks
@VirtualTechBox
@VirtualTechBox 10 ай бұрын
Most Welcome.@@manishkumawat011
@manishkumawat011
@manishkumawat011 10 ай бұрын
@@VirtualTechBox Hello, can you please help me with Dockerfile understanding. I have not understood what last 2 lines will do.
@harshalavaghan3481
@harshalavaghan3481 10 ай бұрын
getting error of unstable of ci pipeline plugin over ssh how to resolve? i tired every possible thing
@VirtualTechBox
@VirtualTechBox 10 ай бұрын
Hope you have installed the plugin "publish over ssh".
@chandankundapura4324
@chandankundapura4324 8 ай бұрын
Hi. I am getting this error while to setup ansible server at 56:05. Could you please guide me. I am running this command $ssh-copy-id 172.31.16.237 and getting this error: "/bin/ssh-copy-id: ERROR: failed to open ID file '/root/.pub': No such file or directory (to install the contents of '/root/.pub' anyway, look at the -f option)"
@VirtualTechBox
@VirtualTechBox 7 ай бұрын
Refer unix.stackexchange.com/questions/212098/unable-to-use-ssh-copy-id-mktemp-failed-to-create-file-via-template
@vishnupriya8421
@vishnupriya8421 Жыл бұрын
Hi sir im getting this error while setup kubernets with EKSCTL, i.e., getting Kubernetes version on EKS cluster: error running `kubectl version`: exit status 1 (check 'kubectl version'). pLease help me on this
@VirtualTechBox
@VirtualTechBox Жыл бұрын
This error comes due to aws cli version. From root user run below commands $ sudo yum remove -y aws-cli $ pip3 install --user awscli $ sudo ln -s $HOME/.local/bin/aws /usr/bin/aws $ aws --version
@supacpro
@supacpro 9 ай бұрын
thank you very much, i have same this issues after following this command its worked. @@VirtualTechBox
@VirtualTechBox
@VirtualTechBox 9 ай бұрын
👍@@supacpro
@shrutidhoke9051
@shrutidhoke9051 Жыл бұрын
1:17:08 ERROR: When i hit "kubectl get nodes" i couldn't get a list of nodes i got the error -- iam_authinticator. please reply😊
@VirtualTechBox
@VirtualTechBox Жыл бұрын
This error comes due to aws cli version. From root user run below commands on Bootstrap-Server. $ sudo yum remove -y aws-cli $ pip3 install --user awscli $ sudo ln -s $HOME/.local/bin/aws /usr/bin/aws $ aws --version Hope you have assigned IAM role to EC2.
@nishantsingh5083
@nishantsingh5083 Жыл бұрын
Hello, i didn't get the option of publish over SSH time: 40:53 could anyone suggest me
@VirtualTechBox
@VirtualTechBox Жыл бұрын
You need to install plugin called "publish over SSH" in your Jenkins.
@nihalsj-k7x
@nihalsj-k7x Жыл бұрын
@48:13 ERROR: Exception when publishing, exception message [Permission Denied] output: UNSTABLE PLEASE HELP ME Ashfaque Sir
@VirtualTechBox
@VirtualTechBox Жыл бұрын
Hope you have given remote directory as "//opt//docker" and you have given the ownership of /op/docker to ansadmin username by command $ sudo chown ansadmin:ansadmin /opt and $ sudo chown ansadmin:ansadmin /opt/docker
@aravinthan4367
@aravinthan4367 Жыл бұрын
Hi Sir , I am getting error @ 48.10 , while building copy artifiacts to ansible . ********************************************************************************* git rev-parse refs/remotes/origin/main^{commit} # timeout=10 > git rev-parse origin/main^{commit} # timeout=10 ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job. SSH: Current build result is [FAILURE], not going to run. Finished: FAILURE ******************************
@VirtualTechBox
@VirtualTechBox Жыл бұрын
Hope you have given Remote Directory://opt//Docker and user ansadmin has right on this directory
@manishkumawat011
@manishkumawat011 10 ай бұрын
only having one issue with you sir. you opened many links in videos but not mentioned what you searched for that and not even mentioned link in description also.
@VirtualTechBox
@VirtualTechBox 10 ай бұрын
All the commands & links I have given in the github repo mentioned in the description. If any thing missing kindly provide me timestamp of the video I will add it in repo github.com/Ashfaque-9x/Scripts/blob/main/DevOps-Project-with-Jenkins-Maven-and-Kubernetes.txt
@manishkumawat011
@manishkumawat011 10 ай бұрын
@@VirtualTechBox Thanks
@VirtualTechBox
@VirtualTechBox 10 ай бұрын
You're Welcome@@manishkumawat011
@saurabhpatil2085
@saurabhpatil2085 Жыл бұрын
We need declairative pipeline project for the same, plz check and upload if any.
@VirtualTechBox
@VirtualTechBox Жыл бұрын
Will try.
@agony944
@agony944 Жыл бұрын
Baba , kuch na smjh aa rha
@VirtualTechBox
@VirtualTechBox Жыл бұрын
Step-1 se project practice karna shuru kar do sab samajh aane lage ga.
@handsomevillian
@handsomevillian Жыл бұрын
sir i got confusion how did you get regapp-deployment.yml and regapp-service.yml
@VirtualTechBox
@VirtualTechBox Жыл бұрын
Along with repository it was cloned. If it is not present, you need to make it. Its a manifest file to deploy resources on Kubernetes.
@handsomevillian
@handsomevillian Жыл бұрын
@@VirtualTechBox i got in later that you provide us a link in description ...thank you
@VirtualTechBox
@VirtualTechBox Жыл бұрын
You're Welcome@@handsomevillian
CAN YOU DO THIS ?
00:23
STORROR
Рет қаралды 49 МЛН
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 22 МЛН
ЗНАЛИ? ТОЛЬКО ОАЭ 🤫
00:13
Сам себе сушист
Рет қаралды 4,1 МЛН
My MEAN sister annoys me! 😡 Use this gadget #hack
00:24
DevSecOps Pipeline Project: Deploy Netflix Clone on Kubernetes
1:34:31
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 318 М.
«Осень». Самая большая загадка Windows XP
14:36
Девять десятых
Рет қаралды 1 МЛН
3-Tier Ultimate DevOps CICD Pipeline Project | DevOps Project
1:38:39
JENKINS END TO END CICD Implementation with Detailed Notes | BEST CICD PROJECT
1:27:11
Пишем реальный CI/CD пайплайн | GITLAB CI/CD на практике
19:10
CAN YOU DO THIS ?
00:23
STORROR
Рет қаралды 49 МЛН