Setup EKS Cluster using eksctl and Deploy Springboot Microservices into EKS using Jenkins Pipeline

Поділитися
Вставка
  • Опубліковано 11 вер 2024
  • www.coachdevop...
    We will learn how to automate springboot microservices builds using Jenkins pipeline and Deploy into AWS EKS Cluster with help of Kubernetes CLI plug-in.
    We will use Springboot Microservices based Java application. I have already created a repo with source code + Dockerfile. The repo also have Jenkinsfile for automating the following:
    - Automating builds using Jenkins
    - Automating Docker image creation
    - Automating Docker image upload into AWS ECR
    - Automating Deployments to Kubernetes Cluster
    EKS cluster can be created by following steps below:
    www.coachdevop...

КОМЕНТАРІ • 183

  • @loverebel6632
    @loverebel6632 2 роки тому +2

    Beautiful Presentation with Beautiful English with no reflection of South languages .

  • @akshaywagh4589
    @akshaywagh4589 Рік тому +6

    Man I wanna give lots of thanks to u , very well explained in simplest way. I saw many videos but this one was game changer i understood the whole CI-CD flow thanks alot

  • @deepakkakkar7698
    @deepakkakkar7698 5 місяців тому +1

    Salute, Perfect video for EKS. I saw so many videos, but here I found out roadmap, how, why and what we are doing, explanations. thanks DevOps coach.

    • @DevOpsCoach
      @DevOpsCoach  5 місяців тому +1

      Glad it helped! Hope you have subscribed to my channel.

    • @deepakkakkar7698
      @deepakkakkar7698 5 місяців тому

      @@DevOpsCoach I have 1 confusion here in this tutorial. When you first run the create cluster command(eksctl create cluster --nodes 2) it creates 2 worker nodes, After that when eks-deploy-k8.yaml file is applied it shows 2 pods created and 2 deployments created with 1 SVC. So does these 2 deployments occurred on that 2 worker nodes(1 on each worker node) ? and where it shows pods=2, is these 2 pods belong to any 1 worker node? Please explain me, I am confused here or missing something.

  • @udaykumar-tb5kn
    @udaykumar-tb5kn 2 роки тому +3

    What a, person you r.. And awesome patience to cover this video.. You r the superb

  • @kaushik4080
    @kaushik4080 2 роки тому +3

    I can't express my happiness. I was waiting for such video for 3 months.
    Thank you so much sir.

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

    Great job! Well explained. One of the best videos of showcasing a lot of moving parts of CI/CD with latest technologies like Kubernetes

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

      Glad it was helpful, thank you for your kind words!

  • @samrat101
    @samrat101 7 місяців тому +1

    all topics consolidated -good one- one stop shop for all devops needs.

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

    I love you man. Thank you for the Clear cut explanation of everything.

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

    Excellent... Well explained everything in a single flow.. Content is next level..

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

    Awesome!! Worked just like that without any errors or issues. Very detailed one!

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

    Man, take a bow. Your explanation made it so easy. Trust me this was my first video on EKS cluster setup & application deployment. Would like to see more contents around Terraform & EKS. Thanks a lot.

  • @thanvikamadhala-ip7kg
    @thanvikamadhala-ip7kg 5 місяців тому +1

    Great Explanation. Thanks a lot.

    • @DevOpsCoach
      @DevOpsCoach  5 місяців тому

      Glad it was helpful! thank you!

  • @shantaveergoudar1478
    @shantaveergoudar1478 9 місяців тому +1

    This video has great detailed explanation, Thank you...😇

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

    Just wow, awesome explanation. 🙏🙏

  • @johnabraham658
    @johnabraham658 2 роки тому +1

    This is very useful and helpful to get Job as i am more senior and new to this platform. Thank you friend and you did a great effort.. - John Trichy

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому

      You are very welcome, So glad to hear! Wish you all the best for your new job!

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

    u r the gem on youtube.

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

      Thank you so much, glad it helped you

  • @aniruddhsingh1725
    @aniruddhsingh1725 2 роки тому +1

    Sir you are awsome. Thank you so much for making this video. Learned a lot.

  • @vback4238
    @vback4238 9 місяців тому +1

    You're an amazing teacher!!

    • @DevOpsCoach
      @DevOpsCoach  9 місяців тому

      Wow, thank you!

    • @vback4238
      @vback4238 9 місяців тому

      Where can we find info about your training? How long? Price? Content? And all.

    • @DevOpsCoach
      @DevOpsCoach  9 місяців тому

      @@vback4238 www.coachdevops.com/2023/06/devops-bootcamp-by-coach-ak-on-aws.html?m=1

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

    Great VDO!, Thanks keep going bro

  • @SadhamHussainsree
    @SadhamHussainsree 2 роки тому +1

    Give this man a Medal

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому

      glad to help you to learn more!

  • @pulidovpe
    @pulidovpe 2 роки тому +1

    Thank you very much for sharing this awesome video!

  • @chandankumar-xg4lc
    @chandankumar-xg4lc Рік тому +1

    great job sir, you are amazing

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

    Hii...I like the way of your explanation, which is simplest and clear to understand everyone. even though our course trainer charged the fees and didn't explained like this..thank you so much

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

      thanks a lot Krishna for your kind words! appreciate your feedback!

  • @joshuadev3901
    @joshuadev3901 2 роки тому +1

    No Words Sir, Really great.

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому

      Awesome, thank you so much Jash!

  • @khadarkhan5498
    @khadarkhan5498 2 роки тому +2

    This is an awesome video, I cant express how important it was for me now. Thank u for such a work.

  • @subanishaik6757
    @subanishaik6757 2 роки тому +1

    Great!!! Very Good and valuable vedio you made. Awesome..Thank you so much..

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

    Thanks for the good explanation.

  • @rahulkumarpatnaik6023
    @rahulkumarpatnaik6023 Місяць тому +1

    Superb video

    • @DevOpsCoach
      @DevOpsCoach  Місяць тому

      Thank you so much, glad you liked it

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

    Nice tutorial. Awesome explantion.

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

    sir not a single minute of the video bored me. I am so happy that I learnt so much in just

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

      So nice of you, thank you for the kind words!

  • @yashwanthreddy2863
    @yashwanthreddy2863 2 роки тому +1

    amazing man , that was awesome

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

    awesome thanks well explained

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

    Thanks a lot sir, really informative content!!

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

    Excellent bro.. awesome explanation

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

    wow explanation 👏point to point 😊

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

      Glad you liked it

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

      @@DevOpsCoach likewise are you going to tell about helm also ?

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

      yes, please check here updated helm playlist. ua-cam.com/video/3FoGwq8eXAY/v-deo.html

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

      @@DevOpsCoach thank you

  • @paravind2979
    @paravind2979 2 роки тому +2

    Thank you so much

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

    this is super helpful, thank you sir.

  • @ragan1362
    @ragan1362 6 місяців тому +1

    One of the best explanation for real time scenario, it helped me a lot to understand the flow and how it works. I have a question regarding Pipeline setup , if we follow same cluster setup for dev , uat and prod.. do we need to follow same pipeline steps for prod cluster as well ?

  • @rajeevagowda9567
    @rajeevagowda9567 2 роки тому +1

    Really an awesome video sir. Thank you very much

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

    how I say thanks to you I am not understanding because the way you are teaching excellent , amazing. keep it up
    excepting some more video on k8s using kops method

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

      thank you so much, keep watching the channel for more videos

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

    Good content 💥 only replacing latest image name in deployment file for next deployment is missing.

  • @dayanandswami8109
    @dayanandswami8109 9 місяців тому

    Hello Sir, I really thank you for making this valuable video, i request you to make one more session for Continuous Deployment through Bamboo---> AWS EKS ---> AWS Ec2,

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

    this is fantastic. thanks.

  • @kayoutube690
    @kayoutube690 2 роки тому +1

    Sir how about the updating the new image tag inside manifest file before deploying to eks cluster? Do you have video for that?

  • @ramkamepalli3395
    @ramkamepalli3395 2 роки тому +1

    You made it so simple sir, Ecr is just alternative of docker hub in aws service right?

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому +3

      thanks you.. yes..that is right!

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

    sir i m getting this error
    While running it, I got "kubectl: not found". I installed Kubernetes-cli plugin to Jenkins, plese suggest .

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

      You need to install kubectl cli as well in Jenkins

  • @parames3039
    @parames3039 2 роки тому

    Successfully completed this task sir please share kubernetes same as like each and every point

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

    In k8 yml file do we need to mention load balancer name which we create in AWS !! and at last you are hitting one url to get see your application result, that load balancer url where we can find !! In AWS load balancer section ??

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

    Hi sir.. Tutorial is awesome, but i had a doubt, in build stage u had given docker.build registry like how it process to build an image from docker file without using docker build -t

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

      That syntax is different. Based on docker pipeline plugin

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

      Ok sir but can you please tell me in a simple way how this fetch image without showing any detail except ecr image, As per docker file spring boot is the image.

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

    I am using the Ubuntu 22 only as we tried to add the command apt-key showing as deprecated

  • @rahulsakya1566
    @rahulsakya1566 2 роки тому +1

    hello sir, i have a issue Kubernetes Deployment successfully, but not displaying the updated content. how to do it please suggest.

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому +1

      you should tag the images with build id dynamically, you should avoid latest tag when building docker image every time

  • @user-ee8gc6jd6l
    @user-ee8gc6jd6l Рік тому

    hello sir,can we say that we have deployed our microservice using shescript instead of using argo image updater.?

  • @kenzyslink7436
    @kenzyslink7436 8 місяців тому +1

    Hello thank you so much for sharing this amazing tutorial i followed every steps till the end but my pods had imagepullbackoff , i need you're help to resolve this issue , I'm still a newbie i don't know how to go about troubleshooting the problem thank you

    • @chethanv7944
      @chethanv7944 7 місяців тому

      @kenzylink - check the deployment.yml file , if the image being referenced is the correct one which is running in your system as well, verify with this command - docker image ls

    • @DevOpsCoach
      @DevOpsCoach  5 місяців тому

      check your deployment yaml file and make sure image path is right

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

    nice video but the volume is a little bit low.

  • @Vinaykumar-pz9hr
    @Vinaykumar-pz9hr 2 роки тому +1

    my deployment and pods are not getting ready what might be the issue

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому

      what is the issue you are having? did you describe your pod using kubectl and find out issue?

  • @akkabra2861
    @akkabra2861 2 роки тому +1

    thankyou so much ,could you please create same it for eks-farget

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

    Hello Sir, If we are creating the EKS cluster with terraform, how do we give permissions for kube/config file to jenkins user?

  • @mbomboaimaim798
    @mbomboaimaim798 2 роки тому

    Fantastic training__ Shall we add. Terraform to the work flow please

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому

      yes any resources creation in AWS, you can use terraform. please watch this video --> ua-cam.com/video/hyP3RleaQ_o/v-deo.html

  • @muhammadsuleman8771
    @muhammadsuleman8771 2 роки тому +2

    Sir Thank you so much for this video. Can you please suggest how can I do monitoring with this lab?

  • @k.r.mohanreddyk.r2350
    @k.r.mohanreddyk.r2350 2 роки тому +2

    Please provide GitHub link below description

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому +1

      github.com/akannan1087/springboot-app

  • @jayasuriyap8748
    @jayasuriyap8748 2 роки тому

    Hi sir how to do ci-cd for databases in jenkins for sql..Can you please post a video..

  • @cherukurimaniharika7031
    @cherukurimaniharika7031 2 роки тому

    Thank you for detailed steps , have a doubt! kubernetes CLI plugin installation is getting failed, May I know alternative plugin to be used? I can see new plugins are available now in jenkins. Please suggest.

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому +1

      you can restart Jenkins. what is the error you are getting?

    • @cherukurimaniharika7031
      @cherukurimaniharika7031 2 роки тому

      @@DevOpsCoach Sir, I tried again and it is installed now. I have implemented all the stages successfully but we are not able to view the pods,services info in AWS console . Why is it so? and how to give EKS access to another user now to view pods container info? Please help on this.

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

    Hello Sir, what if ECR instance is private, what are we supposed to do, I mean how to generate a key or password of ECR

  • @akkabra2861
    @akkabra2861 2 роки тому

    could you please create same it for laravel-admin app through this same process

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

    How can We update build number to deploy instead of latest version image.??

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

      stage('Building image') {
      steps{
      script {
      dockerImage = docker.build registry
      dockerImage.tag("$BUILD_NUMBER")
      }
      }
      }

  • @PandaRamesh-s7u
    @PandaRamesh-s7u Рік тому

    where you written dockerfile and create image and how do you took that image

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

      Dockerfile can be written by following documentation..you can build docker image using Dockerfile. docs.docker.com/develop/develop-images/dockerfile_best-practices/

  • @Xp-Sam
    @Xp-Sam 2 роки тому

    Sir I followed everything correct but at the time of build stage mvn clean install is talking too long, from almost 6 hrs its running, and the instance getting very slow, not able to type any commands in it.

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

      make sure you have good cpu for your ec2 instance. it should be t2.medium or at least 4 GB RAM

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

      As Coach stated, your instance probably has little resources to support the tasks. Change the instance type to medium or large.

  • @kaushik4080
    @kaushik4080 2 роки тому

    Sir I request you to make a video on How to deploy springboot with mysql using jenkins on eks Please sir

  • @kaushik4080
    @kaushik4080 2 роки тому +1

    Sir please suggest - when i run command after all work - kubectl get pods - I get this error - ImagePullBackOff

    • @tradewithshajil7186
      @tradewithshajil7186 2 роки тому +1

      use kubectl describe pod command to get error details

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому

      you should fork this repo and make changes in eks-deploy-k8s.yaml to pull image from your ECR

    • @parames3039
      @parames3039 2 роки тому

      Please change image idname in git eks-deploye-k8s.yaml in

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому

      @@tradewithshajil7186 yes good way to know

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

      Perhaps pulling image from Coach’s ECR private repo. That won’t work. You need to push the image created into your own ECR and then edit the yaml file with your ECR details prior to deployment.

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

    hello sir
    when i do kubectl get pods. The pods still pending

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

      troubleshoot with kubectl describe pod pod_name

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

    Sir will you provide online devops coaching? Please let me know timings and fee

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

      yes, I do. can you please email me? you can get the contact info on this page. www.coachdevops.com/2022/11/aws-azure-cloud-and-devops-coaching.html

  • @abdqadr
    @abdqadr 2 роки тому

    Thank you for this content. If I have multiple microservices to deploy to k8s, do I have to create new pipeline for each of them or is there a way to do everything in a single pipeline

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому +1

      usually you create a separate pipeline for each microservice or you can use Helm for deploying multiple microservices into K8S

    • @abdqadr
      @abdqadr 2 роки тому

      @@DevOpsCoach You mean I can run helm command if i have it installed from Jenkins script?

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

      here is the video for deploying applications into EKS using helm and Jenkins pipeline --> ua-cam.com/video/Ojb9Rh0BcvA/v-deo.html

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

    Sir, kindly share the github repo URL.. we need to clone this for practice. Thank you !!

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

      check the web page.. it is provided there

  • @ramkamepalli3395
    @ramkamepalli3395 2 роки тому

    Sir, do we have scope to use ansible here to create docker image from jar/war file?

  • @shaikhshoaib430
    @shaikhshoaib430 2 роки тому

    What type of database your using in this project i didn't get that

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому +1

      it uses default database, H2

  • @vamsis4931
    @vamsis4931 2 роки тому

    Hi bro
    Can you do how to deploy application into Ecs

  • @moinsyed195
    @moinsyed195 2 роки тому

    HI can you make a video on how to install Jenkins I have tried many time
    but it shows errors

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому

      ua-cam.com/video/V1VOrnG93Ew/v-deo.html
      please watch this video to know how to install Jenkins

  • @shaikrazak9841
    @shaikrazak9841 2 роки тому

    Sir can you please make a GKE video ?

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

    how do you delete the eks cluster on your ec2 ? it won't terminate.

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

      Delete EKS Cluster using eksctl command: sample code below:
      eksctl delete cluster --name demo-eks --region us-east-2
      or Login to AWS console --> AWS Cloud formation --> delete the stack manually.
      you can also delete the cluster under AWS console --> Elastic Kubernetes Service --> Clusters
      Click on Delete cluster

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

      Go to your Auto Scaling Group -ASG, and edit your launch configuration by modifying the desired minimum and maximum node capacity to 0. Then go and manually terminate the worker nodes.
      Modifying the ASG launch config to zero, will prevent ASG from automatically spinning up new nodes after you terminate your worker nodes.

  • @josephangelocasauay4823
    @josephangelocasauay4823 2 роки тому

    help jenkins is not showing in my host

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому

      can you please give more information?

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

    Why you cannot give us your repo like a guide of the project ?

  • @ritenmehta9454
    @ritenmehta9454 2 роки тому

    Hii sir,
    Can you please share your training session???

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому

      Yes, sure, this is the schedule. www.coachdevops.com/2020/08/aws-and-azure-devops-coaching-online.html

  • @2mahender
    @2mahender 2 роки тому

    can you give us github repo link?

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому

      github.com/akannan1087/springboot-app

  • @mallikharjuna1602
    @mallikharjuna1602 7 місяців тому

    I strongly regret i bought 5000 rupees course this kind of explanation i did get from it. This question asked in my paytm devops interview 😢 i am not able to answer it

    • @DevOpsCoach
      @DevOpsCoach  7 місяців тому

      What are you trying to say? Did you get what you were looking for after watching this video?

  • @मराठीमाणूस-ड9ट

    I getting this error
    + kubectl apply -f pod.yaml
    error: error loading config file "/var/lib/jenkins/workspace/jenkinsjob/.kube12416699358756423848config": illegal base64 data at input byte 48
    [Pipeline] }
    [kubernetes-cli] kubectl configuration cleaned up
    [Pipeline] // withKubeConfig
    [Pipeline] }
    [Pipeline] // script
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] }
    [Pipeline] // node
    [Pipeline] End of Pipeline
    ERROR: script returned exit code 1
    Finished: FAILURE

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

      Are you able to query the cluster ? kubectl get nodes command returns anything?

  • @aaryansamra1574
    @aaryansamra1574 2 роки тому

    Thank you sooo much