Jenkins Pipeline for Microservices Deployment to EKS Cluster | Jenkins Kubernetes Deployment to EKS

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ธ.ค. 2020
  • www.cidevops.com/2020/12/depl...
    Source code url is bitbucket.org/ananthkannan/my...
    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 Docker Hub
    - Automating Deployments to Kubernetes Cluster
    Pre-requistes:
    1. Amazon EKS Cluster is setup and running. Click here to learn how to create Amazon EKS cluster.
    2. Jenkins Master is up and running
    3. Setup Jenkins slave, install docker in it.
    4. Docker, Docker pipeline and Kubernetes Deploy plug-ins are installed in Jenkins
    5. Docker hub account setup in cloud.docker.com
    6. Install kubectl on your instance
  • ยานยนต์และพาหนะ

ความคิดเห็น • 64

  • @raghavrao1866
    @raghavrao1866 2 ปีที่แล้ว

    I just subscribed to your channel and visited your website. Awesome, Going forward would expect more content in devops and DevOps interview experience

  • @elad3958
    @elad3958 2 ปีที่แล้ว +1

    I just subscribed to your channel, outstanding content. Thank you so much Coach.

    • @DevOpsCoach
      @DevOpsCoach  2 ปีที่แล้ว

      Thank you so much El Arnold 🙏

  • @JavaPath
    @JavaPath 3 ปีที่แล้ว +1

    Video was simply awesome, very perfect

    • @DevOpsCoach
      @DevOpsCoach  3 ปีที่แล้ว

      Glad it was helpful ☺️🤝

  • @prashantbastapure8677
    @prashantbastapure8677 2 ปีที่แล้ว +1

    Great video... simple to easily understood

    • @DevOpsCoach
      @DevOpsCoach  2 ปีที่แล้ว

      Glad it was helpful!

  • @viciouz25
    @viciouz25 3 ปีที่แล้ว +1

    Perfecto and well explained. Thanks

  • @rameshpattipaka9901
    @rameshpattipaka9901 3 ปีที่แล้ว +4

    Nice tutorial with clear explanation. but one question. here you are connecting to k8s cluster from jenkins master by configuring k8s configuration credential and role bindings. but k8s worker nodes are not part of jenkins slave nodes. So, can we directly add k8s worker nodes as jenkins slave nodes and deploy apps as you explained in video.

  • @sebastianfarias5670
    @sebastianfarias5670 2 ปีที่แล้ว +1

    Amazing video my friend, thank you ! +1 subscriber

  • @senthilc7418
    @senthilc7418 3 ปีที่แล้ว +1

    Good video bro👍 keep going🔥

  • @kiranduba
    @kiranduba 2 ปีที่แล้ว

    Thanks for this great video :
    It would be great if you can share video on below steps :
    - Jenkins Master setup on EC2
    - Setting up Jenkins slave & installing docker in it.

    • @DevOpsCoach
      @DevOpsCoach  หลายเดือนก่อน

      please watch this video --> th-cam.com/video/kHJGYTcLNj0/w-d-xo.htmlsi=a-CB2SkwGPgLN3xQ

  • @mbhaktavatchalam4502
    @mbhaktavatchalam4502 ปีที่แล้ว

    Sir your explanation and documentation superb we need your devops real time coaching

    • @DevOpsCoach
      @DevOpsCoach  ปีที่แล้ว

      please take a look at many playlists in my channels

  • @arunprabu6570
    @arunprabu6570 2 ปีที่แล้ว +1

    Fantastic work

    • @DevOpsCoach
      @DevOpsCoach  2 ปีที่แล้ว +1

      Thank you so much, glad you liked it 👍

  • @roiromano2059
    @roiromano2059 2 ปีที่แล้ว

    Great video. Any chance you can add how to define image:tag as a varible in jenkins?

  • @AjayKumar-xn1mb
    @AjayKumar-xn1mb 2 ปีที่แล้ว

    nice video. but i have a question on mind. Is it secure that directly using kubeconfig file in jenkins credentials.?

  • @SoumyaDassrd
    @SoumyaDassrd 2 ปีที่แล้ว +1

    Thanks Coach 👌

  • @kumars7229
    @kumars7229 3 ปีที่แล้ว +1

    Hi thanks Video is very clear on understanding hands on Jenkin pipeline. Do you have any plan for Openshift?

  • @dayanandswami8109
    @dayanandswami8109 6 หลายเดือนก่อน

    kindly request you to make a video with same architecture using Bamboo. Your support is highly appreciated all the time.

  • @mohamedabdel-aziz7453
    @mohamedabdel-aziz7453 3 ปีที่แล้ว

    @DevOps Coach is there a way I can make the pipeline push to a private docker registry instead of a private one ? and then pull the image from the private registry to use it in creating the pods ?

    • @DevOpsCoach
      @DevOpsCoach  2 ปีที่แล้ว +1

      yes you can...please watch other video th-cam.com/video/xWexnx8gro8/w-d-xo.html

  • @ayushsinghrathore7186
    @ayushsinghrathore7186 3 ปีที่แล้ว

    one question here? how can you say that it is deploying to EKS? you haven't added any ssh-keys under jenkins credentials? you didn't setup the EKS cluster here as well.
    PLease explain

    • @DevOpsCoach
      @DevOpsCoach  3 ปีที่แล้ว

      look at the pre-requistes

  • @palanisamy-dl9qe
    @palanisamy-dl9qe 3 ปีที่แล้ว +1

    Thanks for the video.
    kubectl create clusterrolebinding cluster-system-anonymous --clusterrole=cluster-admin --user=system:anonymous
    After adding above RBAC to anonymous user my jenkins not able to deploy the pod into KES cluster
    + kubectl auth can-i list pods
    yes
    [Pipeline] sh
    + kubectl auth can-i create deployments
    no
    ERROR: script returned exit code 1
    Finished: FAILURE

  • @gauravraj7674
    @gauravraj7674 3 ปีที่แล้ว

    i have created jenkins slave and master and installed docker on slave. connected master slave as well but in pipeline while executing its showing error. DOCKER: COMMAND NOT FOUND.

    • @DevOpsCoach
      @DevOpsCoach  3 ปีที่แล้ว +1

      you need to install docker on slave machine.

  • @Amarjeet-fb3lk
    @Amarjeet-fb3lk 2 ปีที่แล้ว

    Where is master node which manages the cluster?

    • @DevOpsCoach
      @DevOpsCoach  2 ปีที่แล้ว

      master node is control pane provided by AWS itself...we only create worker nodes

  • @narendrabhupathiraju8986
    @narendrabhupathiraju8986 2 ปีที่แล้ว

    how can we add email approval stage inside pipeline?

    • @DevOpsCoach
      @DevOpsCoach  2 ปีที่แล้ว

      You need to use Email Extension Plugin and/or Email Extension Template Plugin

  • @nandkumarpanchal5321
    @nandkumarpanchal5321 8 หลายเดือนก่อน

    Nice Video.. how to test code in this pipiline?

    • @DevOpsCoach
      @DevOpsCoach  7 หลายเดือนก่อน

      you can use linter or replay option

  • @andrewss6591
    @andrewss6591 3 ปีที่แล้ว

    hello Bro, can you please share the base code with docker and yaml file

    • @DevOpsCoach
      @DevOpsCoach  2 ปีที่แล้ว

      check the details in the video

  • @manitejagajminkar4327
    @manitejagajminkar4327 2 ปีที่แล้ว

    ERROR: Kubernetes deployment ended with HasError
    I get this error can you say what exactly is the error with deployment ,manually am able to do but in pipeline am getting this error in last stage of jenkins

    • @DevOpsCoach
      @DevOpsCoach  2 ปีที่แล้ว

      www.coachdevops.com/2020/11/code-error-403-when-trying-to-access.html

    • @DevOpsCoach
      @DevOpsCoach  2 ปีที่แล้ว

      check the above link for the fix

  • @pawannani6597
    @pawannani6597 3 ปีที่แล้ว

    Hloo bro....Please make video using Docker private registry instead of docker hub....Thanks in advance by the way how can i reach you

    • @DevOpsCoach
      @DevOpsCoach  3 ปีที่แล้ว

      Hi Pawan thanks for the feedback, I do have a video on setting up nexus as private docker registry. Please watch here - th-cam.com/video/YARrewGcVHc/w-d-xo.html

    • @DevOpsCoach
      @DevOpsCoach  3 ปีที่แล้ว

      I will post video on integrating with Jenkins pipeline too!

    • @pawannani6597
      @pawannani6597 3 ปีที่แล้ว

      How can i reach you broo

    • @DevOpsCoach
      @DevOpsCoach  3 ปีที่แล้ว

      @@pawannani6597 check my website for contacts info - www.coachdevops.com

  • @mohamedabdel-aziz7453
    @mohamedabdel-aziz7453 3 ปีที่แล้ว

    I am facing an issue that after I deploy the app on EKS the service external IP remains stuck at : and I can't access the spring boot app from a browser any suggestions how to solve that ?

    • @DevOpsCoach
      @DevOpsCoach  3 ปีที่แล้ว +1

      check the image...whose image are you using? check deployment yaml file

    • @mohamedabdel-aziz7453
      @mohamedabdel-aziz7453 3 ปีที่แล้ว +1

      @@DevOpsCoach I am using the same repo as in this video ..I asked a friend and they suggested port forwarding so I am now able to access the app on my local machine thank you very much

    • @DevOpsCoach
      @DevOpsCoach  3 ปีที่แล้ว

      What command did you do?

    • @mohamedabdel-aziz7453
      @mohamedabdel-aziz7453 3 ปีที่แล้ว +1

      @@DevOpsCoach kubectl port-forward 8085:8085 then on my localhost I entered localhost:8085 and was able to access the app from localhost

  • @tusharjoshi5023
    @tusharjoshi5023 3 ปีที่แล้ว

    Hello I'm facing this error failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket

    • @DevOpsCoach
      @DevOpsCoach  3 ปีที่แล้ว

      make sure you install Docker on Jenkins ec2 instance and also add jenkins user to Docker group

    • @tusharjoshi5023
      @tusharjoshi5023 3 ปีที่แล้ว

      @@DevOpsCoach I've installed docker in slave machine also have to install in master machine?

    • @DevOpsCoach
      @DevOpsCoach  3 ปีที่แล้ว

      oh ok. did you try this command? sudo usermod -aG docker jenkins

    • @DevOpsCoach
      @DevOpsCoach  3 ปีที่แล้ว

      and you restart Jenkins service

  • @gameosapiens860
    @gameosapiens860 10 หลายเดือนก่อน +1

    kubernetes-CD plugin is suspended by Jenkins.

    • @DevOpsCoach
      @DevOpsCoach  10 หลายเดือนก่อน +2

      yes you can watch this video.. this video using Kubernetes CLI plug-in th-cam.com/video/C1BlN66s9yo/w-d-xo.html

    • @gameosapiens860
      @gameosapiens860 10 หลายเดือนก่อน

      @@DevOpsCoach Thanks, but in my case I don't have permissions to access instance, need to run Jenkins pipelines through yaml files only.