Kubernetes Tutorial | Run & Deploy Spring Boot Application in K8s Cluster using yaml configuration

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

КОМЕНТАРІ • 156

  • @sureshpal5569
    @sureshpal5569 Рік тому +7

    Your videos are really helpful becuase you are displaying every steps one by one systematilly ,Hats Off

  • @PramodKumar-hu7mt
    @PramodKumar-hu7mt 2 роки тому +5

    Thanks bro..No one makes videos as simple as yours.

  • @andregoncalves1648
    @andregoncalves1648 3 роки тому +1

    Thanks!

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

    Great my friend. From Dominican Republic.

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

    Very Informative! Easy to understand, Thank you so much 🙏🏻

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

    Thanks

  • @anurag-sachan
    @anurag-sachan 2 роки тому +2

    great work brother.

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

    eloquent explanation and illustrations

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

    Great explanation. Thank you!

  • @amitmalge1707
    @amitmalge1707 3 роки тому +1

    Great explained Basant

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

    Great explained Thanks

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

    For those using untuntu or if u r facing issue saying failed to pull an inage while creating deployement. Then please push img to docker hub and then create the deployment . It will work

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

    Thanks for the video, really useful.

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

    Just Awesome.

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

    thanks sir, it helps me a lot, wonderful

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

    Very good content sir

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

    Hello sir, you are doing a wonderful job. Kindly create a video on how to deploy springboot application using helm using eks. Thanks 😊

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

    Very nice. Thank you : )

  • @AnilKumar-dt3sq
    @AnilKumar-dt3sq 29 днів тому +1

    Hi Basant Sir, Very nicely explained video and without any second thought I always refer to your channel for all the java related concepts and stuff. However, I have a doubt like how to execute eval $(minikube docker env) in Windows. or any equivalent command to allow K8s to read the Docker repository in WIndows. Please let me know. 👍

    • @Javatechie
      @Javatechie  29 днів тому

      Hello Anil , Thank you for your kind words and appreciating my work please keep learning
      Regarding your queries please refer below medium blogs medium.com/@javatechie/kubernetes-tutorial-setup-kubernetes-in-windows-run-spring-boot-application-on-k8s-cluster-c6cab8f7de5a

  • @nirajosh
    @nirajosh 8 місяців тому +4

    Just a latest update on this video practical. After you deployed services, you need to issue below mentioned command on your Terminal (For Mac) / Command Prompt OR Power Shell (For Windows).
    Command will "minikube service springboot-k8s-svc".
    It will start tunnel for service springboot-k8s-svc and open application URL it on your default configure browser.
    By default it will try to access endpoint as per video mentioned into video, it won't open.
    Once you will run above mentioned command, You will see something similar to below mentioned text into your terminal/command prompt.
    PS C:\NJ\Learning\springboot-k8s-yaml> minikube service springboot-k8s-svc
    |-----------|--------------------|-------------|---------------------------|
    | NAMESPACE | NAME | TARGET PORT | URL |
    |-----------|--------------------|-------------|---------------------------|
    | default | springboot-k8s-svc | 8080 | 192.168.49.2:30816 |
    |-----------|--------------------|-------------|---------------------------|
    * Starting tunnel for service springboot-k8s-svc.
    |-----------|--------------------|-------------|------------------------|
    | NAMESPACE | NAME | TARGET PORT | URL |
    |-----------|--------------------|-------------|------------------------|
    | default | springboot-k8s-svc | | 127.0.0.1:60144 |
    |-----------|--------------------|-------------|------------------------|
    * Opening service default/springboot-k8s-svc in default browser...
    ! Because you are using a Docker driver on windows, the terminal needs to be open to run it.

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

      Thanks a lot, from the last one day I was struggling 😊🙏

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

      Yes this works but the 192.168.49.2:30816 wont work , at least for me this one was not opening error :"This site can’t be reached"

  • @2RAJ21
    @2RAJ21 19 днів тому +1

    Thank you.

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

    @Javatechie, after deploying sample application not able to access the endpoints from browser. I mean pods are successfully deployed and verified logs as well using minikube dashboard. Using minikubeip+nodeport accessing the service. Looks giving whitelabel spring boot error(ip:port), while appending endpoint its giving 404. Swagger also not able to access.

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

    Great tutorial !

  • @marvgmvocetubo
    @marvgmvocetubo 3 роки тому +4

    Hi, thanks for the video. Great content. I would like to know how to connect the spring boot application with a local mysql image container using minikube. Do you intend to show?

    • @Javatechie
      @Javatechie  3 роки тому +1

      Yes that will be next video .

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

    to get the url of the of the application we used kubectl get service. From this we know ip and port to access our application . Instead can we use minikube service --url . If so what is the difference between two ways.

  • @mutturajdeval4841
    @mutturajdeval4841 3 роки тому +1

    Awesome...!

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

    Thank you very much.

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

    Thank you so much!!

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

    Thank you so much for your courses. My goto place to learn any new technology. QQ: So which instance did the request go to? Is it random?

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

      Yes it will be decided by k8s based on pods health

  • @sachinnag1446
    @sachinnag1446 3 роки тому +5

    Hi, thanks for the video. It is really helpful. I have been trying the same in my local machine. But I'm not able access the application using the internal-ip and the port. I can see that Pods are running fine. Please can you help on this.

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

      did u get any solution for this?

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

      Both of you Please check the service command which I explained end of this tutorial

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

      @@Javatechie yes followed everything as it is. Created service as well and everything is running fine but not getting output on browser...

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

      @@ashishkiran4325 If you are on windows please see my comment, hope this would resolve the issue

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

      Hi Guys any luck all the components are working svc and deployments but not able to access the application I am windows User

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

    You are beautiful person. I love your content.

  • @AnandSingh-tm3cd
    @AnandSingh-tm3cd 3 роки тому +1

    Great thanks

  • @deepikadurairaj6328
    @deepikadurairaj6328 3 роки тому +1

    Thank u...Could u pls provide tutorial on istio configuration as well...thanks in advance...

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

      Sure buddy will go one by one

    • @rabindrakumar949
      @rabindrakumar949 3 роки тому +1

      Please he is doing everything. Let other guys put something so some mettle.

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

    hi great video but when i try to brew install hypervisor I get back that it is no longer supported, so I run my minikube in docker which gives of some warnings about drivers but runs anyway. Then I am able to follow all other steps quite happily until I run "minikube ip" and I see the ip address is not an external one or atleast it is very different to yours. Yours comes up 192.168... where as mine comes up 10.0... and then when i visit the ip address followed by the port I just get a spinning wheel and it fails to load. Is hypervisor essential for this method to work on a mac?

  • @mr.pkumar4849
    @mr.pkumar4849 2 роки тому +2

    Hi, I have 20 services and already build 20 docker images from each services. Should I create 20 deployment file and 20 services or just 1 deployment file and mention all images, containers name in single deployment.

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

      1 file is enough just to change the level

  • @MrAnasSov
    @MrAnasSov 3 роки тому +1

    Thank you so much

  • @Dakshithnaresh
    @Dakshithnaresh 3 роки тому +1

    Thanks buddy

  • @parasjain6591
    @parasjain6591 3 роки тому +1

    Hello sir,
    Can you please create a video on helm tutorial in kubernates it will help alot

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

    Basant, can you make a video on bridge to Kubernetes with single service connecting to multiple Microservices in k8s cluster for debugging using spring boot or vs code
    Thanks god bless you

  • @NamLe-fl4sz
    @NamLe-fl4sz 9 місяців тому

    From Viet Nam. Thanks

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

    Hello @JavaTechie, while deploying this into minikube spring boot detecting kubernetes profile instead of local or other profiles. How this can be disabled.

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

      Not getting you brother.what profile are you talking about

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

      @@Javatechie spring profile.

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

      Okay so you want to say spring.active profile it's not taking rather it's considering profile from k8s right?

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

      @@Javatechie yes

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

      Okay let me check and update you

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

    after service depleoyment nodeip + nodeport address is not reachable.

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

      Generate the service url and access through it .

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

    Can you create a video of spring boot apache kafka appln in kubernetes?

  • @MadhurChouhan-z4m
    @MadhurChouhan-z4m 8 місяців тому +1

    How to use k8s service discovery in micro services architecture pls explain this also

  • @YogeshVerma-iq4xz
    @YogeshVerma-iq4xz 3 роки тому +1

    Thanks for this video, I tried to implement but my pod status is always ImagePullBackOff not running , can you plz help how to resolve this issue?,

    • @Javatechie
      @Javatechie  3 роки тому +1

      Check docker images whether it is available in container or not , make sure to run
      eval $(minikube docker-env)

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

    Cover config map .. can you please interduce 5 services

    • @Javatechie
      @Javatechie  3 роки тому

      Vinodh please bare me for next few tutorial as part of spring boot crud example I will also explain how to use config map and secrets as well

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

    Sir I am not able to find the same image in dockerhub which you used in Dockerfile
    Please let me know where can i find it

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

      What image you are looking for

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

    Hi Basant
    On MAc while running eval $(minikube docker-env)
    I am getting zsh: bad pattern: ^[[31m
    I tried almost most of the solutions but no luck
    Any pointers to fix this one?

  • @oshogarg5215
    @oshogarg5215 3 роки тому +1

    eval $(minikube docker-env) command does not work in windows cmd... not recognized as an internal or external command . what to do?

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

    Hello Basant I m getting connection rerused from the URL which i got from the -minikube service --url
    Please help

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

    how does pods know to contact service ? we didnt provide any configuration for that
    lest just say that you have more than one svc object and one svc object handles backend pods and another svc handles db pods , now how will these svc know to send request to which pod ?

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

    I have done same copy and paste in my system deployment and service, pods created still no able to access page. Pod are running with logs but not able to access page... when I m trying to access nodeip + nodeport then page is not able to access anything.. is there any access permissions need to do

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

    Can you please make a video of Deploying KEYCOAK to Kubernetes via Helm

  • @NIRAJKUMAR-ji3hl
    @NIRAJKUMAR-ji3hl 3 роки тому +1

    Basant..is it possible to demo in windows machine

    • @Javatechie
      @Javatechie  3 роки тому

      Yes already did it . please checkout below link
      ua-cam.com/video/xhxmExC9N1U/v-deo.html

  • @start1learn-n171
    @start1learn-n171 2 роки тому +1

    Tq

  • @ashiqsahu7838
    @ashiqsahu7838 3 роки тому +1

    👍🏻

  • @amitmalge1707
    @amitmalge1707 3 роки тому

    Basant can you guide, how can we handle application logs in docker

    • @amitmalge1707
      @amitmalge1707 3 роки тому +1

      Basant Please can you give any suggestion on this.
      Thanks in advance

    • @Javatechie
      @Javatechie  3 роки тому +1

      Current we are using splunk and k8s dashboard to check log .I didn't analysis more on it . Will check and update you.

    • @amitmalge1707
      @amitmalge1707 3 роки тому +1

      Okay thanks for reply

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

    how to run with active profile?

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

      You need to create a file specific to the environment

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

    docker build failes, any idea?

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

    This site can’t be reached and empty page after following all the steps. pls help me how to resolve

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

      getting same, did you able to resolve it ?

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

      Please try accessing the minikube ip but before that check the health and app startup log of your pods .

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

      @@Javatechie all good, but still somehow not able to call my api. everything is working fine as expected,pods service deployment dashboard. but the call to api or even the host:port not working

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

      @@faixan13 please share your code in GitHub and just a quick ask what OS are you using?

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

    Awesome video, but your english amazed me.

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

      Why buddy what happened with it ? 😂

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

      @@Javatechie exactly

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

    Bro how to deploy this on google kubernetes engine

  • @foddiebyage9696
    @foddiebyage9696 3 роки тому +1

    Why not. To make a real. Time project on sprint boot microservices

    • @Javatechie
      @Javatechie  3 роки тому +1

      Everyone don't know kuhernetes basics stuff please bare with me for few more tutorial.

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

      @@Javatechie it's okk sir u r the best, but really high demand of good real time microservices projects to learn on such platform

    • @Javatechie
      @Javatechie  3 роки тому

      Prashar can you please checkout my microservice playlist once .

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

    eval command is not working in windows

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

    the font is too small to read

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

      For now Please increase on your machine.going forward I will take care this

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

    hello can you put subtitle on your videos?

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

    This doesn't work anymore

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

      Why what is the problem Michael

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

      @@Javatechie
      I am using Windows operating system, at 17:44, when I tried that url with my custom endpoint, it didn't work, probably because it was using the internal url?
      When I tried the command minikube service [serviceName], it worked, but it was probably using the external url

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

      @Javatechie yes buddy, have also faced the same in windows, minikube service (service name) worked actually.

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

    bro please learnt o speak english i barely understood 1 fucking word

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

    hello i can't find the repository target or le the file
    target/springboot-k8s-demo.jar

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

    minikube service spring-boot-k8s --url, I use this command to get url and got the response. but ur mentioned command in this vide does't work. Where i am wrong

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

      No buddy whatever url minikube service will suggest use that

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

      @@Javatechie I did the same as u shown in this video but I was not able to get response. But with the command u mentioned in ur previous video that worked here. I use that command got the direct url and & response as well

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

      Are you trying in windows?

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

      @@Javatechie yes

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

      That's what the problem is buddy. Even I am not sure about this bearded behaviour

  • @kaushlendrakaushal8729
    @kaushlendrakaushal8729 3 роки тому +1

    Thanks!

    • @kaushlendrakaushal8729
      @kaushlendrakaushal8729 3 роки тому +1

      Awesome...Sir
      Can you plz help ?why I am not able get the response on browser ?
      my application is running fine

    • @Javatechie
      @Javatechie  3 роки тому

      Is there any error

    • @kaushlendrakaushal8729
      @kaushlendrakaushal8729 3 роки тому +1

      @@Javatechie no..it all fine

    • @Javatechie
      @Javatechie  3 роки тому

      Are you trying in Linux or windows

    • @kaushlendrakaushal8729
      @kaushlendrakaushal8729 3 роки тому +1

      @@Javatechie Window..sir
      previous lab was executed fine..no issue
      I think I have do again from scrach