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

Поділитися
Вставка
  • Опубліковано 24 січ 2025

КОМЕНТАРІ • 94

  • @VirtualTechBox
    @VirtualTechBox  Рік тому +3

    Do visit to my DevOps Playlist👇
    ua-cam.com/play/PLmSlOWkfkugmXU1WVTu_fmrOwjRAbbWvL.html

  • @surenkumars3181
    @surenkumars3181 6 місяців тому

    really really cool man thankyou so much.... clear explanation for cicd

  • @shamstabrez2986
    @shamstabrez2986 Рік тому +1

    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

  • @ganeshv5580
    @ganeshv5580 Рік тому +3

    Thank you. you made our life easy :)

  • @shankeshwarraos
    @shankeshwarraos 19 днів тому

    Thanks Ashfaque!!

  • @lmduc_devops
    @lmduc_devops 2 місяці тому

    Thanks you very much

  • @sujithadr
    @sujithadr Рік тому +1

    Expecting different projects similar to this

  • @sumanprasad007
    @sumanprasad007 Рік тому +2

    Amazing Project sir, and well explained each and every step @VirtualTechBox

    • @VirtualTechBox
      @VirtualTechBox  Рік тому

      @sumanprasad007 Thank You for your kind words.

  • @gajananbarure4007
    @gajananbarure4007 Рік тому +2

    Well explained!

  • @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.

  • @nihalsj-k7x
    @nihalsj-k7x Рік тому +2

    @40:50 Publish over SSH is not there in my system

    • @VirtualTechBox
      @VirtualTechBox  Рік тому +1

      You need to install plugin called "publish over ssh" in your Jenkins.

    • @nihalsj-k7x
      @nihalsj-k7x Рік тому +1

      @@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

  • @bhanusritanneru9287
    @bhanusritanneru9287 2 місяці тому

    Thank you

  • @chandankundapura4324
    @chandankundapura4324 11 місяців тому

    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  9 місяців тому

      Refer
      unix.stackexchange.com/questions/212098/unable-to-use-ssh-copy-id-mktemp-failed-to-create-file-via-template

  • @prashlovessamosa
    @prashlovessamosa Рік тому +1

    Thank you.

  • @manishkumawat011
    @manishkumawat011 Рік тому +1

    Hello, can anyone you please help me with DockerFile understanding. I have not understood what last 2 lines is doing.

    • @VirtualTechBox
      @VirtualTechBox  Рік тому

      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.

  • @naren06938
    @naren06938 Рік тому +1

    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

  • @mahesh-urz
    @mahesh-urz 4 місяці тому

    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 🙏

  • @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.

  • @ZayanasLittleLion
    @ZayanasLittleLion 11 місяців тому

    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.

  • @abbeydauda7747
    @abbeydauda7747 8 місяців тому

    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  8 місяців тому

      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

  • @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

  • @soumitrabose3277
    @soumitrabose3277 Рік тому +1

    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  Рік тому +1

      @@soumitrabose3277 Every time you commit the code, CI Job get triggered through Poll SCM and you have new Maven build.

    • @VirtualTechBox
      @VirtualTechBox  Рік тому +1

      @@soumitrabose3277 CI Job is Maven job, upon every trigger it will create the new Maven build.

  • @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.

  • @adnanrafique4785
    @adnanrafique4785 Рік тому +1

    Hi,i have a question here if i have ubuntu OS then i follow the same command and process ??

  • @2mahender
    @2mahender Рік тому +1

    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.

  • @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.

  • @universe4d2002
    @universe4d2002 Рік тому +1

    nice

  • @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.

  • @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  Рік тому +1

      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 Рік тому +1

      thank you very much, i have same this issues after following this command its worked. @@VirtualTechBox

    • @VirtualTechBox
      @VirtualTechBox  Рік тому

      👍@@supacpro

  • @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.

  • @harshalavaghan3481
    @harshalavaghan3481 Рік тому

    getting error of unstable of ci pipeline plugin over ssh
    how to resolve? i tired every possible thing

    • @VirtualTechBox
      @VirtualTechBox  Рік тому

      Hope you have installed the plugin "publish over ssh".

  • @prashanthbharadwaj5775
    @prashanthbharadwaj5775 Рік тому +1

    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

  • @manishkumawat011
    @manishkumawat011 Рік тому

    you have downloaded EKSCT but link you have pasted from where ? how we can get that link

    • @VirtualTechBox
      @VirtualTechBox  Рік тому +1

      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 Рік тому +1

      @@VirtualTechBox Thanks

    • @VirtualTechBox
      @VirtualTechBox  Рік тому

      Most Welcome.@@manishkumawat011

    • @manishkumawat011
      @manishkumawat011 Рік тому

      @@VirtualTechBox Hello, can you please help me with Dockerfile understanding. I have not understood what last 2 lines will do.

  • @allindiachannel2290
    @allindiachannel2290 10 місяців тому

    can i also run react or nodejs file using this video ?

  • @sreekanth_ksk
    @sreekanth_ksk 11 місяців тому

    Sir in realtime what is the Size of CI server we use ??

    • @VirtualTechBox
      @VirtualTechBox  11 місяців тому

      Depends on the environment and requirement.

  • @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 Рік тому

    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  Рік тому +1

      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 Рік тому +1

      @@VirtualTechBox Thanks

    • @VirtualTechBox
      @VirtualTechBox  Рік тому

      You're Welcome@@manishkumawat011

  • @saurabhpatil2085
    @saurabhpatil2085 Рік тому +1

    We need declairative pipeline project for the same, plz check and upload if any.

  • @agony944
    @agony944 Рік тому +1

    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  Рік тому +1

      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 Рік тому +1

      @@VirtualTechBox i got in later that you provide us a link in description ...thank you

    • @VirtualTechBox
      @VirtualTechBox  Рік тому

      You're Welcome@@handsomevillian