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
======================================= - Наука та технологія
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.
Thank you🙏
It's like a 3 month course in 30 mins . Thank you 🙏
You are welcome. Happy to hear your kind feedback.
😊😊😅😮 Hyun; ppllp😊😊
You cleared all doughts in one videos
Great to hear. Thanks
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.❤❤👍👍
❤❤ Thank you so much Anurag. You made my day and I'm really happy to see this feedback from you.
Excellent all the doubts haunting me for so many says have been cleared in a single video
Kudos to your explanation
You are welcome.
💯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.👍
Thanks a lot man for your feedback.
Wonderful presentation! Thank you!
Thank you
Thanks !! , neat and clear explanation
without and basic knowledge nor previous experience i was able to understand fully.
Happy to hear this from you.
For beginners like me, Its a neat and clearly explained. Thanks
Great to know. Thanks
Thank you for such an amazing video!
You are welcome.
Superb Explanation !!! Thank you for your great efforts !
Thank you
Very nice project understood everything very easily...
The explaination you have given is amazing
Thank you so much ❤
Best explanation.. Thanks a lot for your efforts.. 🙏🏻🙏🏻🙏🏻
Thank you so much for your feedback.
Thanks bro, amazing. You have answered all of my questions.
You are welcome.
Very good explanation. thank you
You are welcome.
Thank you so much for easy and detailed explanation.
You are welcome.
You are welcome
Good stuffs always, thanks
Thank you
Great content. Thank you very much
Thank you🙏
Wow!!! Great content well explained
Thank you
Thank you for the awesome video
You are welcome.
Great tutorial. thank you
Thank you for your comment
Wow, really helpful ❤
Great. Thanks❤
thanks a tonnnn ........ was very helpful
Welcome. Thank for your feedback.
ThankYou Thetips4you for this video. Very helpful.
You are welcome.
Great explanation ❤
Thank you
Nice explanation
Thank you
Really so many doubts bas been cleared ❤
Great to know. Thanks🙏
Thanks for the video. Just one small question why have you added -Djava.security.egd=file:/dev/./urandom in Dockerfile?
Thanks for this project !!!!!!!!!!!!!!!
🙏
Nice content. But I hope you show a series about jenkins groovy. Thank you.
Thank you. Considering it for future videos.
Awesome ❤❤❤❤
Thank you
Thank you so much.
You are welcome.
good informative Sir
.Can we expect with jenkins,kubernetes(kubeadm),Helm Next video?
Yes. This is the basic, next should be automated way.
Awesome thank you
You are welcome
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.
It depends upon the routing or components you have defined in your webpage.
Thank you so much
You are welcome
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?
Thank you. You need to check my kubernetes playlist.
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
Sure brother
Thanks. Wating for project diango,postgre build github,jenkins and kubernetes
You are welcome. Django was not in my plan, will look in to this.
Great !
Thank you🙏
Great
Thank you
Nice sir
Thank you
Can i use same steps to deploy Spring MVC Application
Thanks
You are welcome my friend.
Thanks bro
You are welcome and thank you bro for your support.
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...
Check out my other videos on Kubernetes.
@@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...
Please make video for deploying application on kubernets by using Jenkins pipeline.
Sure. I will check on this. Thank you for your suggestion.
Can you posible to create one video to create a Mysql microservice in Kubernetes and access this SQL using SQL workbench
I need time to look into this.
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
If it is through Azure you will have to create the rule for ports. Also the service you can put as loadbalancing.
@@Thetips4you both outbound and inbound rule?
How do you secure your k8s cluster, I usually get this question in Interview
You have to secure the authentication, secrets etc.
After you pushed your docker image to repository.. you did add the imagepullsecret in deployment yaml file. But still it worked. How is that
In the deployment file you are going to map the respective image which you have pushed. That is how it works.
cool
Thanks
Whyy your url is showing not secure
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 ;)
What is the exact message of build failure?
@@Thetips4you Tests in error:
ShopfrontApplicationTests.contextLoads » IllegalState Failed to load Applicati...
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
I have doubt can i use jenkins instead of maven for build..??
I didn't understand what you meant by this?
@@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
Does live data ingestion happen?
What do you mean by live data ingestion in here?
I followed your blueprint but couldnt access the services via the url
Check the service is deployed correct and also the port mapping. Node port cluster ip based on your set up
Evening working fine but the URL gets from minikube service not able to access form browser..
Where are you running your minikube?
@@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
Sir is there is no need of edit inbound rules???
Edit Inbound rules for?
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
---
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.
remove one spec
you accessed the services from outside the cluster directly and I have been unable to achieve same feat.
Are you using Kubernetes cluster locally or through cloud?
another web service for health check, unfortunately I could not find kubernetes probes examples for java console applications.
Do you mean how to implement liveness and readiness probe?
@@Thetips4you yes, how to implement kubernetes probes for pure java console application without spring framework.
Maven is showing Build Failure, how to troubleshoot?
What is the error?
You should have explained how to write that dockerfile
It's already explained in other videos
what about call maven as container?
Maven as container for what?
Getting error IllegalState Failed to load ApplicaticatonContext
Did you check the logs?
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.
Check the version of surefire-plugin in pom.xml. If it is not listed, add the config for it in to the pom.xml
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!
What do you mean by not worked? Any error and at what stage?
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?
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.
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
got it it's resolved adding this plugin in pom.xml
org.apache.maven.plugins
maven-surefire-plugin
2.19.1
true
Great to know. Thanks
@@ajitkalshetti6527 bro cN YOU please guide me ,how to add this plugin to pom file.....i have been tryind hard but no succces...