You can call your service by using the below command. Minikube service springboot-k8s The above command will start our application on our default browser with : 172.17.02:30163 ClusterIP: A clusterIP service is the default Kubernetes service. We have one Service called springboot-k8s, of type NodePort, which is available at the cluster-internal IP 10.96.102.130 and there is no external access for cluster-ip.
I'm cloning from your git repo and deployed your springboot-kubernetes application. When I'm trying to build docker image, I have get one error like Step 2/3 : add target/springboot-example.jar app.jar Add failed: file not found in build context or excluded by .dockerignore: stat target/spring boot-example.jar: file does not exist
Hi, thanks for this wonderful video. My application is not working in the browser though my pod is in running state. I gave node up with pod port number. I’m working in azure Ubuntu. Any firewalls I need to enable?
Bro we installed minikube using VirtualBox so how we can deploy image without push dockerhub? Our local image coud't access minikube?Is it possible in make it as same network?
@@technotowntechie9732 oooo Thanks broi. I saw in video that command but i am not tried.Thanks Broi.Your videos lots of help me to improve my docker and kubernates knowldge.
Please find the below video URL link for building and deploying spring boot application with MYSQL on a Kubernetes cluster th-cam.com/video/6OJgD_RygiM/w-d-xo.html
Bro i tried the same my docker image name is springboot-docker kubectl run springboot-docker_1 --image=springboot-docker:0.0.1 --port=8080 --image-pull-policy=Never I run this script, Response showing pod/springboot-docker-1 created But i checked kubectl get deployments but its not showing. Any idea? Could you please he to fix this?
You can debug the deployments, pods and events by using the below commands kubectl describe deployments kubectl get pods kubectl describe pod ‘pod-name’ kubectl get events
Not working: Step 2/3 : ADD target/springboot-example.jar app.jar ADD failed: stat /var/lib/docker/tmp/docker-builder932526819/target/springboot-example.jar: no such file or directory
Hi master, one question. It seems the kubectl run command is no longer creating deployments. What is the new way to do it? I tried with kubectl create but yml file is missing. Do i need to create the file with some parameters? I am a little stuck here
you can checkout my code from the below my Github link and go to the directory where deployment.yml and service.yml file exists and try to run kubectl apply -f deploymet.yml and kubectl apply -f service.yml commands. github.com/shameed1910/springboot-kubernetes.git
Please go through the my below video for Building and deploying Spring Boot application with MySQL on Kubernetes cluster th-cam.com/video/6OJgD_RygiM/w-d-xo.html
@@technotowntechie9732 but this video shows you are creating new mysql db. But for my senario I already have mysql db when we deploy the spring boot app to the kubernetes it should just connect to existing mysql db
Great video! It would be awesome if you could do a Kubernetes, Spring and Prometheus/Grafana stack tutorial, there does not seem to be a good video on the market regarding this!
@@technotowntechie9732 Could you do it with Kubernetes? I have tried to attempt this myself but there seems to be no working functionality, even with the use of Helm.
My two weeks of learning in a single video. Great work. Keep doing good work.
Thank you
great video !!! it makes my day , thanks for the content ,looking forward to see more content like this
My week effort you shown in single video bro, really great work and very easy way. Please keep up posting multiple video same like this
Sure, Thank you
Excellent Sir, thanks for sharing your knowledge
Hi. Thanks for the video. Why in the last access from the browser you use 172.17.0.2 and in the CLUSTER:IP in 24:29 is shown 10.96.102.130?
You can call your service by using the below command.
Minikube service springboot-k8s
The above command will start our application on our default browser with :
172.17.02:30163
ClusterIP:
A clusterIP service is the default Kubernetes service.
We have one Service called springboot-k8s, of type NodePort, which is available at the cluster-internal IP 10.96.102.130 and there is no external access for cluster-ip.
It helped me alot. Thank you!
You're welcome!
Great video. Thanks!
don't we need to install Matrix server for HPA to work? you missed that detail in video, i guess
I'm cloning from your git repo and deployed your springboot-kubernetes application.
When I'm trying to build docker image, I have get one error like
Step 2/3 : add target/springboot-example.jar app.jar
Add failed: file not found in build context or excluded by .dockerignore: stat target/spring boot-example.jar: file does not exist
Hi, thanks for this wonderful video. My application is not working in the browser though my pod is in running state. I gave node up with pod port number. I’m working in azure Ubuntu. Any firewalls I need to enable?
its awesome bro
Bro we installed minikube using VirtualBox so how we can deploy image without push dockerhub? Our local image coud't access minikube?Is it possible in make it as same network?
You can run the below command before creating an image
eval $(minikube docker-env)
@@technotowntechie9732 oooo Thanks broi. I saw in video that command but i am not tried.Thanks Broi.Your videos lots of help me to improve my docker and kubernates knowldge.
Hi! Do you have a video about MySQL in k8s? I want to use it but I don't know who.
I will try to post next video on MySQL in k8s and let you know
@@technotowntechie9732 Thank you!
Please find the below video URL link for building and deploying spring boot application with MYSQL on a Kubernetes cluster
th-cam.com/video/6OJgD_RygiM/w-d-xo.html
Could you please give in depth training by arranging group for the learners , can pay and join the course.
Bro i tried the same my docker image name is springboot-docker
kubectl run springboot-docker_1 --image=springboot-docker:0.0.1 --port=8080 --image-pull-policy=Never
I run this script, Response showing pod/springboot-docker-1 created
But i checked kubectl get deployments but its not showing. Any idea?
Could you please he to fix this?
You can debug the deployments, pods and events by using the below commands
kubectl describe deployments
kubectl get pods
kubectl describe pod ‘pod-name’
kubectl get events
i am also facing the same . any solution did you get for this
hi, did anyone resolve this please share?
facing same issue
Thank you for sharing ..
Not working:
Step 2/3 : ADD target/springboot-example.jar app.jar
ADD failed: stat /var/lib/docker/tmp/docker-builder932526819/target/springboot-example.jar: no such file or directory
for all who want the answer: you're missing running: mvn package for building the .jar file 😆
@@rebarius thanks brother, I wasted 2-3 hours on step 2/3 : ADD target , and you save me.
Hi master, one question.
It seems the kubectl run command is no longer creating deployments.
What is the new way to do it? I tried with kubectl create but yml file is missing.
Do i need to create the file with some parameters? I am a little stuck here
Are you trying to create the deployment with the help of the yml file?
you can checkout my code from the below my Github link and go to the directory where deployment.yml and service.yml file exists and try to run kubectl apply -f deploymet.yml and kubectl apply -f service.yml commands.
github.com/shameed1910/springboot-kubernetes.git
@@technotowntechie9732 Yes, that worked fine, now i am able to see all deployed. Thanks master :)
If I have a mysql db in spring boot application then how it works
Please go through the my below video for Building and deploying Spring Boot application with MySQL on Kubernetes cluster
th-cam.com/video/6OJgD_RygiM/w-d-xo.html
@@technotowntechie9732 but this video shows you are creating new mysql db. But for my senario I already have mysql db when we deploy the spring boot app to the kubernetes it should just connect to existing mysql db
We have the app earlier running on jboss now we want to move to kubernetes and connect to existing mysql db
Great video! It would be awesome if you could do a Kubernetes, Spring and Prometheus/Grafana stack tutorial, there does not seem to be a good video on the market regarding this!
Thank you, Sure will do another video on Spring and Prometheus/Grafana stack
@@technotowntechie9732 Could you do it with Kubernetes? I have tried to attempt this myself but there seems to be no working functionality, even with the use of Helm.
Great 👍👍
Great. hi Master, please help me Install K8s on ubuntu. Thanks.
Are you facing any issue while installing K8s on your machine?
Please go through the below link that might help you to install k8s on Ubuntu.
kubernetes.io/docs/tasks/tools/install-minikube/
@@technotowntechie9732 thanks master.
Hi jack you can refer to this tutorial for installation of k8s on ubuntu -th-cam.com/video/briu_Ev89sw/w-d-xo.html
eval $(minikube docker-env) is not working for me. In which prompt need to run this? I'm using windows
You can try the below command
@FOR /f "tokens=*" %i IN ('minikube docker-env') DO @%i