Deploying Java Applications with Docker and Kubernetes | DevOps Project

Поділитися
Вставка
  • Опубліковано 22 чер 2022
  • In this devops project, you will learn how to building Java applications and container images, deploy java application on kubernetes. We are going to use a sample java microservice and as a java developer or devops engineer you can get to know how to deploy java application in kubernetes.
    ------------------------------------------------------------------------------------
    git hub url:
    github.com/shazforiot/docker-...
    -----------------------------------------------------------------------------------
    ----------------------------------------------------------------------------------
    Kubernetes Playlist:
    • Kubernetes
    ---------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    Docker Playlist:
    • Docker
    -----------------------------------------------------------------------------
    =======================================
    Follow me @:
    / thetips4you
    / thetips4you
    / thetipsforyou
    www.thetips4you.com
    =======================================
  • Наука та технологія

КОМЕНТАРІ • 153

  • @ramsp35
    @ramsp35 2 місяці тому +5

    Such a good delivery of the concepts. Very crisp explanation, direct to point. No extra blah blah added to the subject. Can learn deployment in 30 mins. This is exactly what I was looking for.

  • @surekhach1422
    @surekhach1422 Рік тому +24

    It's like a 3 month course in 30 mins . Thank you 🙏

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

      You are welcome. Happy to hear your kind feedback.

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

      😊😊😅😮 Hyun; ppllp😊😊

  • @omkarraut60
    @omkarraut60 11 днів тому +1

    You cleared all doughts in one videos

  • @anuragpanwar912
    @anuragpanwar912 10 місяців тому +6

    I hope this message finds you in good spirits. I wanted to take a moment to express my heartfelt appreciation for your this video and outstanding teaching skills. Your dedication and passion for what you do shine through in every aspect of your work, and it truly inspires those around you.
    Your video was not only visually stunning but also filled with valuable content that I found incredibly helpful. Your ability to convey complex concepts in a clear and engaging manner is a true gift, and it has made a significant impact on my understanding and learning experience.
    Your commitment to excellence and your genuine care for your students are evident in every lesson you deliver. You have a unique way of making learning enjoyable, and your enthusiasm is contagious.
    I want to thank you for going above and beyond to create such an enriching and inspiring learning environment. Your dedication to your craft and your students is truly commendable, and it is evident that you put your heart and soul into everything you do.
    Once again, thank you for sharing your expertise and knowledge with the world through your beautiful video and teaching. You are making a positive difference in the lives of so many, and your impact is immeasurable.❤❤👍👍

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

      ❤❤ Thank you so much Anurag. You made my day and I'm really happy to see this feedback from you.

  • @sreenivasp6650
    @sreenivasp6650 Рік тому +5

    Excellent all the doubts haunting me for so many says have been cleared in a single video
    Kudos to your explanation

  • @mkannanmsc
    @mkannanmsc Рік тому +14

    💯Thanks!
    The way you have explained and demonstrated is top notch. Towards the goal and coverage was very good.!! Wonderful Job...!!
    I hope this will be very much useful for Operations Team and the Engineers too.!!! Excellent.👍

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

      Thanks a lot man for your feedback.

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

    Wonderful presentation! Thank you!

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

    Thanks !! , neat and clear explanation
    without and basic knowledge nor previous experience i was able to understand fully.

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

    For beginners like me, Its a neat and clearly explained. Thanks

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

    Thank you for such an amazing video!

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

    Superb Explanation !!! Thank you for your great efforts !

  • @shaffishaik3852
    @shaffishaik3852 6 місяців тому +2

    Very nice project understood everything very easily...
    The explaination you have given is amazing

  • @nitinkoli67
    @nitinkoli67 3 місяці тому +2

    Best explanation.. Thanks a lot for your efforts.. 🙏🏻🙏🏻🙏🏻

    • @Thetips4you
      @Thetips4you  3 місяці тому

      Thank you so much for your feedback.

  • @zaki-rb6yo
    @zaki-rb6yo Рік тому

    Thanks bro, amazing. You have answered all of my questions.

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

    Very good explanation. thank you

  • @ShivKumar-ur9le
    @ShivKumar-ur9le 2 місяці тому +1

    Thank you so much for easy and detailed explanation.

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

    Good stuffs always, thanks

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

    Great content. Thank you very much

  • @Duracell97
    @Duracell97 3 місяці тому

    Wow!!! Great content well explained

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

    Thank you for the awesome video

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

    Great tutorial. thank you

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

      Thank you for your comment

  • @starfoxedits1909
    @starfoxedits1909 10 місяців тому +1

    Wow, really helpful ❤

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

    thanks a tonnnn ........ was very helpful

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

      Welcome. Thank for your feedback.

  • @user-rc5oh8tw4g
    @user-rc5oh8tw4g 8 місяців тому

    ThankYou Thetips4you for this video. Very helpful.

  • @shambhunathsahani6505
    @shambhunathsahani6505 3 місяці тому +1

    Great explanation ❤

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

    Nice explanation

  • @pratikpradhan236
    @pratikpradhan236 4 місяці тому +1

    Really so many doubts bas been cleared ❤

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

    Thanks for the video. Just one small question why have you added -Djava.security.egd=file:/dev/./urandom in Dockerfile?

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

    Thanks for this project !!!!!!!!!!!!!!!

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

    Nice content. But I hope you show a series about jenkins groovy. Thank you.

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

      Thank you. Considering it for future videos.

  • @devops-journey01
    @devops-journey01 Рік тому +1

    Awesome ❤❤❤❤

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

    Thank you so much.

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

    good informative Sir
    .Can we expect with jenkins,kubernetes(kubeadm),Helm Next video?

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

      Yes. This is the basic, next should be automated way.

  • @pravinkumar8491
    @pravinkumar8491 4 місяці тому +1

    Awesome thank you

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

    Hi, Thanks a lot for the tutorial.
    But I'm bit confused at one point, can you please explain that why we need to add 'products' and 'stocks' in order to view their respective output pages at the end of both of their URL's for stock page and product page (because we haven't added anything similar to this while we were accessing the 'shopfront' page). Kindly let me know if missing anything.
    Would really appreciate if my query is answered.

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

      It depends upon the routing or components you have defined in your webpage.

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

    Thank you so much

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

    Sir...nicely explained, but where u have did all this? In powershell or cmd prompt or MacOS or AWS Cloud EC2 AMI Linux instance or ubuntu? and how can you configure kubectl setup for bash, not shown. Will it directly run Kubernetes commands?

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

      Thank you. You need to check my kubernetes playlist.

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

    Hi brother, when you create a CICD project using Jenkins then please show how we can deploy the application on dev and prod environment's

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

    Thanks. Wating for project diango,postgre build github,jenkins and kubernetes

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

      You are welcome. Django was not in my plan, will look in to this.

  • @Arun-mh7br
    @Arun-mh7br Місяць тому

    Great !

  • @SaifulIslam-my8lh
    @SaifulIslam-my8lh Рік тому +1

    Great

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

    Nice sir

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

    Can i use same steps to deploy Spring MVC Application

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

    Thanks

  • @jericholiao8134
    @jericholiao8134 11 місяців тому +1

    Thanks bro

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

      You are welcome and thank you bro for your support.

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

    Thanks for the awesome video,
    I have a request from you, can you kindly tell us how to deploy java application or any other application into multiple nodes kubernetes cluster not in the minikube or make a video about it...

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

      Check out my other videos on Kubernetes.

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

      @@Thetips4you I have checked all videos and there wasn't any video for deployment with mutl-node cluster, it was all for deploying with minikube, you have mentioned deploying with multi-node cluster in the video but you didn't, in the end you've done it with the minikube...

  • @AkshayPawar-vj4zh
    @AkshayPawar-vj4zh 6 днів тому +1

    Please make video for deploying application on kubernets by using Jenkins pipeline.

    • @Thetips4you
      @Thetips4you  6 днів тому

      Sure. I will check on this. Thank you for your suggestion.

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

    Can you posible to create one video to create a Mysql microservice in Kubernetes and access this SQL using SQL workbench

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

    Hi... I'm not able to access the service thru url... Do i need to allow the outbound or inbound ports for this? I did this in Azure... Pls help

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

      If it is through Azure you will have to create the rule for ports. Also the service you can put as loadbalancing.

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

      @@Thetips4you both outbound and inbound rule?

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

    How do you secure your k8s cluster, I usually get this question in Interview

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

      You have to secure the authentication, secrets etc.

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

    After you pushed your docker image to repository.. you did add the imagepullsecret in deployment yaml file. But still it worked. How is that

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

      In the deployment file you are going to map the respective image which you have pushed. That is how it works.

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

    cool

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

    Whyy your url is showing not secure

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

    thanks for the presentation but i have an issue with mvn clean (failure to build ) even that i install all the packages and make sure of versions hope that you reply ;)

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

      What is the exact message of build failure?

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

      @@Thetips4you Tests in error:
      ShopfrontApplicationTests.contextLoads » IllegalState Failed to load Applicati...

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

      Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @b6ba78c

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

    I have doubt can i use jenkins instead of maven for build..??

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

      I didn't understand what you meant by this?

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

      @@Thetips4you here in this video you used maven tool for converting source into executable formate, wht i m asking is can I use Jenkins instead of maven for the same

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

    Does live data ingestion happen?

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

      What do you mean by live data ingestion in here?

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

    I followed your blueprint but couldnt access the services via the url

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

      Check the service is deployed correct and also the port mapping. Node port cluster ip based on your set up

  • @Abhaygupta-tl7br
    @Abhaygupta-tl7br 11 місяців тому

    Evening working fine but the URL gets from minikube service not able to access form browser..

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

      Where are you running your minikube?

    • @Abhaygupta-tl7br
      @Abhaygupta-tl7br 11 місяців тому

      @@Thetips4you thanks for the reply I am running minikube on amazon linux.. If I curl with URL which I get from minikube service ... I am getting the response... But if I use this URL to browser I am not getting any response.. If possible please suggest

  • @Udari-nb1mx
    @Udari-nb1mx 3 місяці тому

    Sir is there is no need of edit inbound rules???

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

    Error from server (BadRequest): error when creating "stockmanager-service.yaml": Deployment in version "v1" cannot be handled as a Deployment: strict decoding error: unknown field "spec.spec"
    I got this error brother. Please help I changed API version & image as well also, but unable to resolve

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

      ---
      apiVersion: v1
      kind: Service
      metadata:
      name: stockmanager
      labels:
      app: stockmanager
      spec:
      type: NodePort
      selector:
      app: stockmanager
      ports:
      - protocol: TCP
      port: 8030
      name: http
      ---
      apiVersion: apps/v1
      kind: Deployment
      metadata:
      name: stockmanager
      spec:
      selector:
      matchLabels:
      app: stockmanager
      replicas: 1
      template:
      metadata:
      labels:
      app: stockmanager
      spec:
      containers:
      - name: stockmanager
      image: thetips4you/stockmanager:latest
      ports:
      - containerPort: 8030
      livenessProbe:
      httpGet:
      path: /health
      port: 8030
      initialDelaySeconds: 30
      timeoutSeconds: 1
      change like this.

    • @mpattnaik4705
      @mpattnaik4705 3 місяці тому

      remove one spec

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

    you accessed the services from outside the cluster directly and I have been unable to achieve same feat.

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

      Are you using Kubernetes cluster locally or through cloud?

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

    another web service for health check, unfortunately I could not find kubernetes probes examples for java console applications.

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

      Do you mean how to implement liveness and readiness probe?

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

      @@Thetips4you yes, how to implement kubernetes probes for pure java console application without spring framework.

  • @SurajM-qs3wx
    @SurajM-qs3wx 5 місяців тому

    Maven is showing Build Failure, how to troubleshoot?

  • @c00per_
    @c00per_ 4 місяці тому

    You should have explained how to write that dockerfile

    • @Thetips4you
      @Thetips4you  4 місяці тому

      It's already explained in other videos

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

    what about call maven as container?

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

      Maven as container for what?

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

    Getting error IllegalState Failed to load ApplicaticatonContext

  • @raviteja-bc4dc
    @raviteja-bc4dc Рік тому

    sir , im getting build failure while running the mvn clean install command in terminal pls help me to resove
    Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project shopfront: There are test failures.
    [ERROR]
    [ERROR] Please refer to /root/microservice-eks/docker-Java-kubernetes-project/shopfront/target/surefire-reports for the individual test results.

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

      Check the version of surefire-plugin in pom.xml. If it is not listed, add the config for it in to the pom.xml

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

    Didn't worked out on my end, I could do mvn clean install, tried tons of things and debugged with help of GPT, but still, didn't worked out!

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

      What do you mean by not worked? Any error and at what stage?

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

    Just wondering when you first time do docker "build -t tips4you/shopfront:latest ." in which tips4you is mandatory in that command, in my opinion, you can directly give "shopfront ." as well, isn't it?

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

      If you want to push the image to your dockerhub, you need to give the account name. If you just want to have local image you can just give the image name alone.

  • @ajitkalshetti6527
    @ajitkalshetti6527 11 місяців тому +1

    Hi sir,
    while running mvn clean install I am getting error:
    Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 5.572 s
    [INFO] Finished at: 2023-07-18T19:42:20+05:30
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project shopfront:
    There are test failures.
    [ERROR]
    [ERROR] Please refer to C:\Users\HP\kubernets\K8-Java\docker-Java-kubernetes-project\shopfront\target\surefire-reports for the individual test results.
    i have installed maven & jdk still getting error could you please check this
    thanks in advance

    • @ajitkalshetti6527
      @ajitkalshetti6527 11 місяців тому +1

      got it it's resolved adding this plugin in pom.xml
      org.apache.maven.plugins
      maven-surefire-plugin
      2.19.1

      true

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

      Great to know. Thanks

    • @SurajM-qs3wx
      @SurajM-qs3wx 5 місяців тому

      @@ajitkalshetti6527 bro cN YOU please guide me ,how to add this plugin to pom file.....i have been tryind hard but no succces...