Tamil CI/CD Deploy An Application in Kubernetes Cluster Using Jenkins Pipeline Docker | InterviewDOT

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ม.ค. 2020
  • Click here - / @interviewdot to get notifications.
    Tamil Deploy An Application in Kubernetes Cluster Using Jenkins Pipeline Docker | InterviewDOT
    Jenkins is an open source automation tool written in Java with plugins built for Continuous Integration purpose. Jenkins is used to build and test your software projects continuously making it easier for developers to integrate changes to the project, and making it easier for users to obtain a fresh build.
    They usually make shipping and deploying your application much easier. They make consistent testing much, much easier.
    Containerising your application is like shoving your app and all its dependencies into a box. Except the box is infinitely replicable. Whatever happens in the box, stays in the box - unless you explicitly take something out or put something in. And when it breaks, you'll just throw it away and get a new one.
    Containers make your app easy to run on different computers - ideally, the same image should be used to run containers in every environment stage from development to production.
    This post is your guide for building a Docker image, and then setting up Jenkins 2 to build and publish the image automatically, whenever you commit changes to your code repository.
    Requirements
    To run through this guide, you will need the following:
    To build and run the Docker image locally: Mac OS X or Linux, and Docker installed
    To set up Jenkins to build the image automatically: Access to a Jenkins 2.x installation
    Writing a Dockerfile
    To be able to build a Docker image with our app, we'll need a Dockerfile. You can think of it as a blueprint for Docker: it tells Docker what the contents and parameters of our image should be.
    Docker images are often based on other images. For this exercise, we are basing our image on the official Node Docker image. This makes our job easy, and our Dockerfile very short. The grunt work of installing Node and its dependencies in the image is already done in our base image; we'll just need to include our application.
    The Dockerfile is best stored with the code - this way any changes to it are versioned along with the actual application code.
    Building the image in Jenkins
    Now that we know our Docker image can be built, we'll want to do it automatically every time there is a change to the application code.
    For this, we'll use Jenkins. Jenkins is an automation server often used to build and deploy applications.
    Note: this guide assumes you are running Jenkins 2.0 or newer, with the Docker Pipeline plugin and Docker installed.
    If you don't have access to a Jenkins installation, refer to wiki.jenkins-ci.org/display/J...
    PIPELINES AS CODE: THE JENKINSFILE
    Just like Dockerfiles, I'm a firm believer in storing Jenkins pipeline configuration as code, along with the application code.
    It generally makes sense to have everything in the same repository; the application code, what the build artifact should look like (Dockerfile), and how said artifact is created automatically (Jenkinsfile).
    We'll need to tell Jenkins what our stages are, and what to do in each one of them. For this we'll write a Jenkins Pipeline specification in a Jenkinsfile.
    That's the entirety of our pipeline specification for Jenkins. Now, we'll just need to tell Jenkins two things:
    Where to find our code
    What credentials to use to publish the Docker image
    We'll start by configuring the credentials:
    CONFIGURING DOCKER HUB WITH JENKINS
    To store the Docker image resulting from our build, we'll be using Docker Hub. You can sign up for a free account at hub.docker.com.
    We'll need to give Jenkins access to push the image to Docker Hub. For this, we'll create Credentials in Jenkins, and refer to them in the Jenkinsfile.
    As you might have noticed in the above Jenkinsfile, we're using docker.withRegistry to wrap the app.push commands - this instructs Jenkins to log in to a specified registry with the specified credential id (docker-hub-credentials).
    We have successfully containerised an application, and set up a Jenkins job to build and publish the image on every change to a repository. Great work!
    Next steps
    Now that we have set up a basic delivery pipeline, there are a few more things to consider.
    DEPLOYMENT
    The next logical step in the pipeline would be to deploy the container automatically into a testing environment. For this, we could use something like Amazon Elastic Container Service or Rancher.
    github.com/net-vinothkumar/ci...
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @andrewsselvaraj
    @andrewsselvaraj 3 ปีที่แล้ว +12

    you have covered 2 hours topic in 10 minutes Great Great Great work...All the best

    • @InterviewDOT
      @InterviewDOT  3 ปีที่แล้ว +2

      Thanks a million for your valuable feedback happy learning interviewDot 🙏🎉

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

    Clearly understand bro tq so much Pls do more videos

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

    Short video but with all relevant details, great job. Thank you

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

    Thanks for wonderful session, its very clear. :)

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

      Thanks a million for your excellent feedback, if you not yet subscribed kindly subscribe to InterviewDOT channel for latest software updates - happy learning - InterviewDOT

  • @barsbbaa
    @barsbbaa 4 ปีที่แล้ว +2

    Thanks for wonderful session, with simple and valuable demo with sample use case. Much appreciated for your thought of sharing your knowledge to others.

    • @InterviewDOT
      @InterviewDOT  4 ปีที่แล้ว +1

      Hi Baranidharan S, Wow, that was really an excellent feedback, I am really happy that it helped you, happy learning - InterviewDOT

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

    your explanation is really amazing.. thanks for the video Brother

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

      Thanks a million for your excellent feedback, if you not yet subscribed kindly subscribe to InterviewDOT channel for latest software updates - happy learning - InterviewDOT

  • @Muthukumar-ie5tj
    @Muthukumar-ie5tj 4 ปีที่แล้ว +1

    Great! Your videos helpful for upskilling !

    • @InterviewDOT
      @InterviewDOT  4 ปีที่แล้ว

      Dear Muthu Kumar, wow, thanks for your great feedback, I am really happy that you are able to learn, happy learning - InterviewDOT

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

    Sir you mentioned about timer interval in Jenkins can you show us how it uses the timer interval of 1 minute for rebuilding and re deploying the application. That is the main of pipeline right

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

    Wonderful explanation to know the complete process of DevOps process. covers all the required tools for an application deployment

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

      Thanks a million for your excellent feedback, if you not yet subscribed kindly subscribe to InterviewDOT channel for latest software updates - happy learning - InterviewDOT

  • @maghee83
    @maghee83 6 หลายเดือนก่อน +1

    superb, romba vala vala kozhla kozhla illamal superaa oru presentation

    • @InterviewDOT
      @InterviewDOT  6 หลายเดือนก่อน +1

      Romba thanks for the great feedback , please stay tune for more educational videos ❤️

  • @SureshKumar-ow2ji
    @SureshKumar-ow2ji 4 ปีที่แล้ว +1

    Excellent CICD explanation bro..keep up the good work. 👍

    • @InterviewDOT
      @InterviewDOT  4 ปีที่แล้ว +1

      Thanks a lot for your excellent feedback Suresh, happy learning, all the best for your job search , InterviewDOT 👍

    • @SureshKumar-ow2ji
      @SureshKumar-ow2ji 4 ปีที่แล้ว +1

      @@InterviewDOT sure..thank you 👍

  • @hemanthkumar-tj4hs
    @hemanthkumar-tj4hs ปีที่แล้ว

    semma explaination ,,,oru doubt how to upload .env files

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

    Boss... REQUEST- Please create docker playlist if you have time.... So that it will be easy for the people like me who wants to take their DevOps or Cloud carrier into next level..

    • @InterviewDOT
      @InterviewDOT  4 ปีที่แล้ว +2

      Dear Jaykumar Anburaja, Thanks for your request, sure will make a playlist when the time permits, happy learning, InterviewDOT

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

    Tnks for the video can you explain me how to configure jenkins with kubernetes cluster

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

    wonderful bro , Thanks a lot

    • @InterviewDOT
      @InterviewDOT  3 ปีที่แล้ว +2

      Hi Sankar Dev , Thanks a million for your excellent feedback - InterviewDOT

  • @InduPriya-zj9kb
    @InduPriya-zj9kb 23 วันที่ผ่านมา

    really super and help ful for me please do more videos.

    • @InterviewDOT
      @InterviewDOT  22 วันที่ผ่านมา

      Thank you, I will

  • @sugeivansenthinathan8350
    @sugeivansenthinathan8350 4 ปีที่แล้ว +1

    Great work
    Thank you

    • @InterviewDOT
      @InterviewDOT  4 ปีที่แล้ว +2

      Dear Sugeivan Senthinathan, Thanks a lot for your excellent feedback, I am so happy that effort finally was worth, thanks happy learning - InterviewDOT

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

    Anna thank you so much for this video

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

      Thanks a million for your excellent feedback, if you not yet subscribed kindly subscribe to InterviewDOT channel for latest software updates - happy learning - InterviewDOT

  • @akonme1000
    @akonme1000 4 ปีที่แล้ว +1

    This is what i have been looking for a long time to understand cicd in a granular level. Thank you very much.

    • @InterviewDOT
      @InterviewDOT  4 ปีที่แล้ว +1

      Dear Ganesh saravanan, Thanks a lot for your excellent feedback, I am really happy that you found it, happy learning, please share with your friends if you like, how did you find this tutorial ? in youtube search ? - InterviewDOT

    • @akonme1000
      @akonme1000 4 ปีที่แล้ว +1

      @@InterviewDOT i have already subscribed to your channel ji.

    • @InterviewDOT
      @InterviewDOT  4 ปีที่แล้ว +2

      wow - thanks - hope I will do my best to teach you - have a great day - InterviewDOT

    • @akonme1000
      @akonme1000 4 ปีที่แล้ว +1

      @@InterviewDOT yes ji. Please create a playlist for each devops tools. It would be great learning for beginners like me. Thank you very much.

    • @InterviewDOT
      @InterviewDOT  4 ปีที่แล้ว +1

      sure will create a devops playlist ,thanks for asking.

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

    Excellent demo

    • @InterviewDOT
      @InterviewDOT  3 ปีที่แล้ว +2

      Thanks a million - happy learning - InterviewDOT

  • @user-kk1qw4km9q
    @user-kk1qw4km9q 3 ปีที่แล้ว

    Super ji wonderful appreciate it

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

      Thanks a million Anand for your valuable feedback happy learning interviewDot 🙏

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

    Boss, Nice Demo in native language :)
    Also, I am looking Linux host hardening remediation scripts in reference to CIS benchmark, if you have any details keeps me posted. Thanks in Advance

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

      Thanks a million for your excellent feedback,sure - please subscribe to InterviewDOT channel for software updates, happy learning - InterviewDOT

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

    Thank you so much!!!

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

    In Selenium with java using testng we can group the testcases and run particular group in maven.. same way is it possible to run particular testcases In Jenkins? If so can I know how it has to be done?

  • @bala-st9cj
    @bala-st9cj 2 ปีที่แล้ว +2

    before enter i am empty after see this video you made me a devops engineer.

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

      Thanks a million for your excellent feedback, if you not yet subscribed kindly subscribe to InterviewDOT channel for latest software updates - happy learning - InterviewDOT

    • @bala-st9cj
      @bala-st9cj 2 ปีที่แล้ว +1

      Already subscribed

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

      Cool, thanks a lot

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

    Nice super All the best

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

      Thanks a million Palani Vel for your valuable feedback happy learning InterviewDOT 🎊🙏

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

    Do u have any seperate devops collection playlist bro ?

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

    Nice Explanation

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

      Thanks a million for your excellent feedback - InterviewDOT

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

    How the jenkins is going to authenticate the K8s and docker. Please explain.

  • @jaykumaranbu7173
    @jaykumaranbu7173 4 ปีที่แล้ว +1

    Thank you boss

    • @InterviewDOT
      @InterviewDOT  4 ปีที่แล้ว

      Dear Jaykumar Anburaja, Thanks a lot for your excellent feedback, I am happy that it helped you, happy learning - InterviewDOT

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

    Excellent

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

      Thanks a million for your excellent feedback, if you not yet subscribed kindly subscribe to InterviewDOT channel for latest software updates - happy learning - InterviewDOT

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

    Can you please explain about the CICD branches and docker registry, I was asked this question.

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

      Thanks a million for your valuable feedback happy learning , sure will make it, InterviewDOT 🎊🙏

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

    Does jenkins required program knowledge

  • @thaaychannel100
    @thaaychannel100 17 วันที่ผ่านมา

    Super 🎉

    • @InterviewDOT
      @InterviewDOT  16 วันที่ผ่านมา

      Super, thanks for the feedback

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

    how jenkins is configured for executing shell commands using kubectl like "kubectl apply -f deployment.yml"? what are the plugins for minikube and how to configure? any help?

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

      Thanks for the question, as far as I know, there is no need of plugins, in the build machine before executing kubectl commands, it has to be installed and configured, its a precondition - InterviewDOT

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

    HI bro , to run this application whether Docker should be installed in our local machine . I am getting below error [INFO] --- dockerfile-maven-plugin:1.4.12:build (default) @ spring-boot-k8S ---
    [INFO] dockerfile: null
    [INFO] contextDirectory: C:\ProgramData\Jenkins\.jenkins\workspace\my pipeline after installed git locally
    [INFO] Building Docker context C:\ProgramData\Jenkins\.jenkins\workspace\my pipeline after installed git locally
    [INFO] Path(dockerfile): null
    but dockerfile is available in the mentioned path]

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

    bro i followed ur steps but i have error pls can u help me ?

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

    sir i am a vmware admin. who will provide us the jenkins file