this is my heartful thanks to the great people who have the dedication to share the knowledge they have acquired should not end with themselves but must be shared with the world. thanks you soo much.
HI it's very nice and loving it, it will be great if you explain how this works in real time env as well. for example if I want to update table or delete how can we do this, and if I want to open this DB in any db tools toad can we do this ? if yes how
When i try to get svc port and minikube ip and try to hit this url, it doesn’t work but when i use kubectl service servicename -url then it works on that url. Anyone please guide what is wrong here?
My build is failing after modifying the application. properties with parameterized DB_HOST, DB_NAME, etc... what could be the cause of this? I'm doing an mvn clean install and it gives me this error: HikariPool-1 - Connection is not available, request timed out after 30002ms.
sir Please help me out - i am trying since 2 day , i am hosting MYSQL as you taught in this video but still i am getting CrashLoopBackOff- after Describe Pod - Back-off restarting failed container mysql in pod mysql-698ff4f4f4-xmdwn_default(d483b3a9-6491-4de9-9a88-ad9e217dd091) PLEASE HELP ME
Check whether MySQL image is available in container or not if yes check whether you are giving correct image name with correct tag in deployment file or not
Hey, at the beginning you were able to send a request to localhost:8080 and I suppose that was already to your docker container. How did you manage to get that ? I have the same dockerfile, I run my docker with docker run -i -p 8080:8080 and it runs but I always receive a 404 to any of my paths. what am I doing wrong?
@@Javatechie Thanks brother. I think This is most demanded video, i found comments on several videos. I checked you tube for 9 hours for such video as i demanded but did not find it.
Great video sir, but if the database exists outside the kuberntes cluster (i.e. a big legacy db), how can I reach out to that inside the cluster? thanks
basic question: already springboot application connected to DB with credentials from properties file, then why we need to deploy DB pods with secrets/configMaps, spring application image deployed n exposed in K8, through endpoint can't we connect to DB directly? - sry newbie to K8s
when i try to build the project by keeping application.properites file empty and application.yaml file in the same format as yours, i get error as my application is not able to connect to database. What to do ??
i was trying to build jar code copied from ur repository but not able to do so. what to do should i change the properties file and point to my db then make a jar file will it work?
hey, with that volume, the data is persisted? if i remove spring pod, and then started again, i can retrive the same data at get/{id} or not? same with the mysql... if i remove the mysql pod, the data saved from spring boot to mysql pod is saved?
I tried accessing the spring boot application using the ip (obtained from minikube ip) and node port (obtained from kubectl get service), but it didn't work. Any what I am doing wrong?
You built your project again after adding config variable i.e DB_HOST, DB_NAME, etc in application.properties file. But it failed when I tried to do that from command line. can you tell me how can I build the project after changing the those config variables?
Hi @javatechie, whether running database in kubernates is good practice? suppose database crashes, while self- healing whether it maintains data or it will start as an empty database
Nice java techie.. In the docketFile you mentioned final name.. but if your Pom.xml has specific version instead of final name.. like springboot-curd 2.1 how can we define? And how do we manage the version . In future your app version would be springboot-curd2.2..
I copied the code as it is just one change I did is I am using mysql:8 and every time I am getting errors: [ERROR] [MY-010735] [Server] Could not open the mysql.plugin table. Please perform the MySQL upgrade procedure. [ERROR] [MY-000068] [Server] unknown option '--ignore-db-dir'. I added - "--ignore-db-dir=lost+found" Still unable to run the mySql pod. Please help !
Hi Sir, How to view the database created in the Minikube Cluster. I tried view via mySQL workbench but not able to find the datbase that is created via db deployment file. I am able to see the database created via interactive terminal bash-4.2# mysql -h mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.7.44 MySQL Community Server (GPL)
Nice Job. waiting for this long time.. this example doesn't work with MacBook Air with M1 Apple Chip. it gives imagepullbackoff error. Failed to pull image "mysql:5.7": rpc error: code = Unknown desc = no matching manifest for linux/arm64/v8 in the manifest list entries. can you please check this issue and what to be modified in the deployment file? Thank you..
I have followed your tutorial, and build K8s deployment and service, but when i am accessing it, endpoint is taking too much time, and it gives timeout
I did like the same as video, all my pods is running, my service is running,.... All is green in the dashboard. But I can not access the site. "This site can’t be reached ..... take too long to respond". I dont know what to do :(
So, I have springboot application which is connected to my local db,I careted the Docker file for the application to run and I also created 2 containers to run dependent to each other using docker-compose,yml file, Now How I can make and run this on My jenkins.?? What are the steps I should need to follow in order to do this.?
Thank you once again for right tutorail - focusing on what is required. I facing some issue. I was able to access my app with the url provided by "minikube service service-name --url" and it is working fine. But when I try to use the "minikube ip" with port from the "kubectl get svc" it is not working. the IP I received from the "minikube ip" is not pingable. Mine is windows environment and my kubectl version is v1.25.2. Any insight where am going wrong. Thanks in advance!
My bad I was assuming about docker compose. Both containers already sync and we are giving datasource properties pointing to container in our app and config
Hi Manish . I will try to complete this weekend but I recently recovered from high cold fever so not sure about my voice 😂. Please coperate with me. I will try to release asap
@@Javatechie I am also facing the same issue. If we are trying to give the host name and configuration according to the container of the nod. Then build is not able to get succesfull and hence jar file is not formed . And if jar file is not forming then how do process further. Please can you help. I am trying from past 2-3 days diffrent ways.
Thank you for such a content sir! I have replaced application.yml config variables, but after that maven install gives some exception on starting the application as it does not find the given variables
How I wanted to know how u build the application, as with the dynamic configuration I'm unable to build the spring boot application. Would be grateful if u share build configuration details
Hi i am getting PS D:\springboot-crud-k8s> kubectl logs mysql-5df5dcd68c-n77ng Error from server (BadRequest): container "mysql" in pod "mysql-5df5dcd68c-n77ng" is waiting to start: CreateContainerConfigError, can you please suggest here
Hello Sir. CrashLoopBackOff error is continuosly occuring for me when am trying to implement the same. If you give a solution to this error that would be really helpful.
Just one doubt. If we install DB in a Pod which is inside a Node and my application is distributed to multiple nodes then how we should manage it ? Can you please explain this. Basically I am doubtful if I am choosing anti-affinity, how we should approach with Db instance, where should I keep the instance ?
Hello Sir I am facing this issue. Not able to build the application. It requires hostname while building. java.sq1.SOLTransientconnectionException:HikariPool-1-Connectionisnotavailable,requesttimedoutafter30006ms. Error
Hi Sir, In dockerfile you have added the jar file location From where i can find the jar file , coz without jar file dockerfile will not run. I don't find the jar file on git hub. ADD target/springboot-crud-k8s.jar springboot-crud-k8s.jar Please reply
Don't Say "Thanks for Watching". We thank You.
Amazing! am still speechless with the quality of contents you dish out each time for free, thank you so much and well done
Thanks buddy 😊
Thank you so much❤️❤️❤️🙏🙏this video is a life saver...I've been struggling with this for 6hours
God bless you
Hillarious....i get to learn alot from you. Please, never stop teaching
Thanks buddy 😊. Keep learning
Awesome!! Congratulations for all your tutorials. Keep spreading the knowledge!!
This is exactly what I had been looking for from long time ago. Thank you so much sir. 🙏
Thanks buddy 😊
Actually the only tutorial that made my attempt at this successful! Thank you so much Java Techie
I love, love, love JavaTechie. Very big brains. Burning my brain. Guuuutt. 😀🤣😉🙃🙂
beautiful video, very helpful .. my best wishes for your endeavors ...
My god ur the solution for all my searches..Really great quality of post with good examples ...Any complex topi u explained very sim0lified way
Thanks Ram 🙂. Keep learning 😃
Spot on! Very clear and accurate content. Keep up the good work
Excellent sir you are the master and easy to understand thanks for the content. Amazing
This was an amazing tutorial, keep it up.
Outstanding stuff, thanks so much!👏
Thanks a lot for the hands-on
Awesome. Learned new things
Waited for longtime 😀😀thanks 😊
this is my heartful thanks to the great people who have the dedication to share the knowledge they have acquired should not end with themselves but must be shared with the world. thanks you soo much.
Thanks buddy 😊. Keep learning
I was waiting for this. Thanks ❤️❤️❤️
Nice one 👍
HI it's very nice and loving it, it will be great if you explain how this works in real time env as well. for example if I want to update table or delete how can we do this, and if I want to open this DB in any db tools toad can we do this ? if yes how
THANK YOU VERY MUCH!!!🙏🙏
Another masterpiece
Thank you so much sir
Awesome man thanks for posting
ati sundar
When i try to get svc port and minikube ip and try to hit this url, it doesn’t work but when i use kubectl service servicename -url then it works on that url. Anyone please guide what is wrong here?
Even recently I also faced same issue so start your minikube with hyperkit driver
Perfect example with code. How we can connect this mysql server using DBeaver or any UI client
I don't think we can do that because your MySQL instance running inside pod so will check and confirm
Nice work!!
My build is failing after modifying the application. properties with parameterized DB_HOST, DB_NAME, etc... what could be the cause of this? I'm doing an mvn clean install and it gives me this error: HikariPool-1 - Connection is not available, request timed out after 30002ms.
Same here
use following mvn command to create jar file and then proceed with docker steps as mentioned in video mvn clean install -Dmaven.test.skip=true
@@vijaypant2224 Thanks a ton it worked using your command
@@vijaypant2224 thanks a lot
@@vijaypant2224 thanks a lot
Thank u so much .
Spring boot service is not accessible from browser with nodeport and node ip.any clue?
sir Please help me out - i am trying since 2 day ,
i am hosting MYSQL as you taught in this video but still i am getting
CrashLoopBackOff-
after Describe Pod - Back-off restarting failed container mysql in pod mysql-698ff4f4f4-xmdwn_default(d483b3a9-6491-4de9-9a88-ad9e217dd091)
PLEASE HELP ME
Check whether MySQL image is available in container or not if yes check whether you are giving correct image name with correct tag in deployment file or not
Thanks So Much @ JavaTechie.. If It Possible Can U Make Video on ArgoCd with SprinBoot and Angular
Yes I will
@@Javatechie Thanks
Hey, at the beginning you were able to send a request to localhost:8080 and I suppose that was already to your docker container.
How did you manage to get that ? I have the same dockerfile, I run my docker with docker run -i -p 8080:8080 and it runs but I always receive a 404 to any of my paths.
what am I doing wrong?
This is nice video. Sir I request you to make same video using jenkins ci-cd and deployment through ecr to eks. Please
I will do that buddy 😊
@@Javatechie Thanks brother. I think This is most demanded video, i found comments on several videos. I checked you tube for 9 hours for such video as i demanded but did not find it.
Hi @Basant, Thank for this useful video. Could you please help create a Medium blog for this as well? Which covers end-to-end CRUD in one Medium blog.
I believe it's there please check if not i will add
Great video sir, but if the database exists outside the kuberntes cluster (i.e. a big legacy db), how can I reach out to that inside the cluster? thanks
I haven't gone through such scenarios but you need to run that db in containers to connect inside k8s. But i will check and update you
perfect
basic question: already springboot application connected to DB with credentials from properties file, then why we need to deploy DB pods with secrets/configMaps, spring application image deployed n exposed in K8, through endpoint can't we connect to DB directly?
- sry newbie to K8s
You need to understand purpose of secrete and config map
Please put a link to your previous tutorial which you referred.
Please checkout kubernetes playlist all videos are in sequence so it will be easily understandable for you
how did you build the application with empty application.properities file ??????
It's not mandatory to keep attributes only in properties file
when i try to build the project by keeping application.properites file empty and application.yaml file in the same format as yours, i get error as my application is not able to connect to database. What to do ??
@@anirudh09041 I have the same issue
Thanks buddy
i was trying to build jar code copied from ur repository but not able to do so. what to do should i change the properties file and point to my db then make a jar file will it work?
Build the jar with your own db properties then create MySQL containers and change the properties
Thanks
hey, with that volume, the data is persisted? if i remove spring pod, and then started again, i can retrive the same data at get/{id} or not? same with the mysql... if i remove the mysql pod, the data saved from spring boot to mysql pod is saved?
Yes you can retrieve your old data will be always stored as backup in etcd key value dB
@@Javatechie man please keep to teach us, may God bless you!
Hi javatechie, where did you specify the dbhost name while deplying mysql into kubernetes.
Check the deployment file
I tried accessing the spring boot application using the ip (obtained from minikube ip) and node port (obtained from kubectl get service), but it didn't work. Any what I am doing wrong?
thank you but i haved a issue , connection faillure uknown host mysql db
Please validate db-deployment and service yaml configuration
You built your project again after adding config variable i.e DB_HOST, DB_NAME, etc in application.properties file. But it failed when I tried to do that from command line.
can you tell me how can I build the project after changing the those config variables?
Just do mvn clean install
@@Javatechie I can not run install after adding ${DB_****}. Can you help me?
Please follow the same sequence what I explained in video
use following mvn command to create jar file and then proceed with docker steps as mentioned in video mvn clean install -Dmaven.test.skip=true
@@javanspringic4227 use this mvn clean install -Dmaven.test.skip=true
Hi @javatechie, whether running database in kubernates is good practice? suppose database crashes, while self- healing whether it maintains data or it will start as an empty database
Yes it will take backup of your data while performing self healing
Had the exactly same doubt. Thanks for asking this Sumit,
Thanks for the answer Java Techie
Nice java techie.. In the docketFile you mentioned final name.. but if your Pom.xml has specific version instead of final name.. like springboot-curd 2.1 how can we define? And how do we manage the version . In future your app version would be springboot-curd2.2..
Nothing just create new image with new tag then deploy it . I will demonstrate this in my next video
facing issue
Error from server (BadRequest): container "mysql" in pod "mysql-76c6bf8f88-vzg5f" is waiting to start: ContainerCreating
Status is not running? If yes check whether your docker and k8s is in sync or not
Hi Sir, thanks for your efforts...
How we can add oracle 19c db instance instead of myself, is there any challenges in add oracle db image
You need to create deployment and service object of Oracle process is same .
@@Javatechie Thank you sir, will try and update. Keep rocking in k8 more
Where are all these containers hosted? The cloud or your local machine?
I copied the code as it is just one change I did is I am using mysql:8 and every time I am getting errors:
[ERROR] [MY-010735] [Server] Could not open the mysql.plugin table. Please perform the MySQL upgrade procedure.
[ERROR] [MY-000068] [Server] unknown option '--ignore-db-dir'.
I added - "--ignore-db-dir=lost+found"
Still unable to run the mySql pod.
Please help !
Hi Sir, How to view the database created in the Minikube Cluster. I tried view via mySQL workbench but not able to find the datbase that is created via db deployment file. I am able to see the database created via interactive terminal bash-4.2# mysql -h mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.44 MySQL Community Server (GPL)
No we can't connect with workbench until unless it is hosted to a environment currently in demo we ran it in local so not possible
At 15.53 seconds I'm receiving error while creating build because it is looking for Mysql connection. Where did you specified them ?
Skip the test and build
@@Javatechie Thanks :)
Nice Job. waiting for this long time..
this example doesn't work with MacBook Air with M1 Apple Chip. it gives imagepullbackoff error. Failed to pull image "mysql:5.7": rpc error: code = Unknown desc = no matching manifest for linux/arm64/v8 in the manifest list entries.
can you please check this issue and what to be modified in the deployment file?
Thank you..
Did you execute eval $(minikube docker-env) ?
@@Javatechie yes I did this step. Only difference is I use docker instead hyperkit..
Yes I also used docker only
@@JavatechieI use mac book air with M1 Apple Chip. Is there any different steps required in this case?
I don't think it will cause any issue. One quick suggestion just re repeat the steps again from scratch
I have followed your tutorial, and build K8s deployment and service, but when i am accessing it, endpoint is taking too much time, and it gives timeout
Could you please check the health of both MySQL and application to make sure both should be up and running
I did like the same as video, all my pods is running, my service is running,.... All is green in the dashboard. But I can not access the site. "This site can’t be reached ..... take too long to respond". I dont know what to do :(
Generate the service URL and try access it
how come you didn't had to provide the port for the mysql connection in your spring application?
I do provide in deployment.yml file please validate once
So, I have springboot application which is connected to my local db,I careted the Docker file for the application to run and I also created 2 containers to run dependent to each other using docker-compose,yml file, Now How I can make and run this on My jenkins.?? What are the steps I should need to follow in order to do this.?
Please refer to this ua-cam.com/video/vBoOXP6BkDI/v-deo.html
Thank you once again for right tutorail - focusing on what is required. I facing some issue. I was able to access my app with the url provided by "minikube service service-name --url" and it is working fine. But when I try to use the "minikube ip" with port from the "kubectl get svc" it is not working. the IP I received from the "minikube ip" is not pingable. Mine is windows environment and my kubectl version is v1.25.2. Any insight where am going wrong. Thanks in advance!
is this resolved facing same error?
I am also facing same issue. Any update
how application pod is interacting with the mysql pod?
MySQL also runs as a container in kubernetes and if you observe we execute link command
@@Javatechie where are we executing link commad? can you please elaborate
My bad I was assuming about docker compose. Both containers already sync and we are giving datasource properties pointing to container in our app and config
@@Javatechie In application.yaml?
Config map & secret k video kab tak ayegi sir
Vault pr bhi vedio bano sir
Hi Manish . I will try to complete this weekend but I recently recovered from high cold fever so not sure about my voice 😂. Please coperate with me.
I will try to release asap
@@Javatechie I appreciate your hard work sir, get well soon 🙂
building jar is unsuccessful with the dynamic properties in application.yml
What is the error?
@@Javatechie I am also facing the same issue. If we are trying to give the host name and configuration according to the container of the nod. Then build is not able to get succesfull and hence jar file is not formed . And if jar file is not forming then how do process further. Please can you help. I am trying from past 2-3 days diffrent ways.
@@skyhi9383 i am also facing the same issue !!! How did you solve it ??
Please start react series
Yes I will start after this k8s series
Thank you for such a content sir! I have replaced application.yml config variables, but after that maven install gives some exception on starting the application as it does not find the given variables
What is the error?
@@Javatechie Spring was not able to find variables while doing maven install, so when I set environment variables it worked.
Cool
@@suvodipmondal1858 Can u pls let me know how u fix that issue.
@@rohitmanohar2733 hi ! I did with this syntax:
property: ${env_variable: "default value"}
How I wanted to know how u build the application, as with the dynamic configuration I'm unable to build the spring boot application. Would be grateful if u share build configuration details
It might be late, but try deleting test files or use this command "mvn clean install -Dmaven.test.skip=true"
@@ovezmyrat3281 Bro you are savior
Hi i am getting PS D:\springboot-crud-k8s> kubectl logs mysql-5df5dcd68c-n77ng
Error from server (BadRequest): container "mysql" in pod "mysql-5df5dcd68c-n77ng" is waiting to start: CreateContainerConfigError, can you please suggest here
solution mila ??
Can you just execute the CMD kubectl log
Hello Sir. CrashLoopBackOff error is continuosly occuring for me when am trying to implement the same. If you give a solution to this error that would be really helpful.
Your docker might not sync with kubernetes please execute eval $() command and then check whether docker image is available or not
@@Javatechie docker 5.7 is anyway not getting pulled due to some platform issue
@@SnehaGupta-v7u okay upgrade it then .
Thank you very much for video,please can you create same video for mariadb master slave replication?please post video,its my request to you
Okay i will check this
Thank you sir @@Javatechie
Just one doubt. If we install DB in a Pod which is inside a Node and my application is distributed to multiple nodes then how we should manage it ? Can you please explain this.
Basically I am doubtful if I am choosing anti-affinity, how we should approach with Db instance, where should I keep the instance ?
Sir, Can you provide its jenkinsfile Please
I am trying to do poc on it .
@@Javatechie - Okay, Thank you sir
App isn't accessible after deployment.
Get the service url and access it . I explained how to get that in video
I'm accessing in the same way serverip on which minikube running: nodeport
What is the issue please mention here ?
Not seen your fonts in mobile view
Please zoom and watch
Hello Sir I am facing this issue. Not able to build the application. It requires hostname while building.
java.sq1.SOLTransientconnectionException:HikariPool-1-Connectionisnotavailable,requesttimedoutafter30006ms.
Error
Hi Sir,
In dockerfile you have added the jar file location
From where i can find the jar file , coz without jar file dockerfile will not run.
I don't find the jar file on git hub.
ADD target/springboot-crud-k8s.jar springboot-crud-k8s.jar
Please reply
Jar should be present in your target after maven install
hello sir, i followed all the steps but i got com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure please i need help
Check whether your MySQL container is up and running or not
Its up and running !
And i have create my own database
did you solve it now ????