Deploying Node.js Application In Kubernetes | Kubernetes Tutorial For Beginner
Вставка
- Опубліковано 29 чер 2024
- #devops #kubernetes #kubernetestutorial In this video we are going to learn about how to deploy a node js application in kubernetes. To learn Kubernetes Full Course check the below playlist. We would have heard about node js microservices kubernetes, or running kubernetes node js microservices. We will go through the steps by process on kubernetes deploy web app. Steps involved are creating a Node.js Application, create a Dockerfile, build Image and push to Docker Hub, create Kubernetes Deployment and Services.
Kubernetes Full Course: • Kubernetes
-----------------------------------------------------------------------------------
Timestamp
-----------------------------------------------------------------------------------
0:00 - Introduction
2:26 - Creating NodeJS App
5:53 - Dockerize the NodeJs App
7:48 - Build your Docker Image
12:06 - Push your Image to Docker Hub
14:12 - Create Kubernetes Deployment.yml
16:54 - Create Kubernetes Services.yml
18:51 - Deploy your application in Kubernetes
--------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Setup Minikube:
• Kubernetes Basics | Mi...
-----------------------------------------------------------------------------
----------------------------------------------------------------------------
Deployment and Services:
• Kubernetes Pods, Deplo...
--------------------------------------------------------------------------
-------------------------------------------------------------------------
Github Link:
github.com/shazforiot/nodeapp...
------------------------------------------------------------------------
====================================
Follow me @:
/ thetips4you
/ @thetips4you
/ thetipsforyou
www.thetips4you.com
=====================================
Music credit: "Royalty Free Music from Bensound" - Наука та технологія
Another awesome! delivery my friend am never tired of your vides and teachings i simply cant have enough. Well done and thanks always for adding your own contribution to the Devops community growth
Thank you my friend. Appreciate you taking time and giving the feedback. Really happy to hear your kind word's.
Great! This is about the best tutorial I've seen on Kubernetes. Love it!
Thank you so much for your feedback.
Excellent tutorial, i was able to successfully implement this scenario, i made some mistakes in-between but i was able to rectify the issues. thank you very much for taking the time and sharing your content, especially for sharing the github code
You are welcome.
Thank you. I followed your tutorial and it worked perfectly !
Thanks, that is great to hear.
I really love your tutorial, hope to see your next videos, thank your for all your effors
Thank you.
Nice job. Thanks for sharing this walkthrough!
You are welcome and thank you for your feedback.
This is a channel that can help me learn a lot experience about operation system and deployment. Thanks for dedicating your efforts
You are welcome and thanks a lot my friend for your support.
Learned a ton! Thanks!
Happy to hear your feedback. Thanks
Thanks for uploading the video :) Appreciated :)
You are welcome.
it worked perfectly thank you a lot ^^
You are welcome
A very nice step by step guide!!
Thank you for your feedback.
Great tutorial. Thanks!
You are welcome.
very good tutorial, thanks!
Thank you
Explained very well
Thank you friend for your feedback.
Thank you for this Tutorial
You are welcome.
excelent it works!
Thank you.
Great efforts
Thank you
Simply WOWWWWWWWWWW....
Thank you
can you make more of these videos like using helm, and terraform? with the same app?
I need to find more time :) I will look at your request.
Thanks
You are welcome.
Why I am not getting the test result after hitting public ip to port 3000 ,in web server??
whether the nodePort in service.yml can be duplicated by an application using a random port?
When we are using NodePort specified by ourselves, it is our duty to make sure that , that port is not used by any other service assigned by kubernetes itself.
thanks a lot for the awsome content
i am working with node and mongo how cani i include both in kubernetes ?
Use the approach and customize to your needs.
Are you using localpc? And what OS? Or you are using cloud?
I am using a virtual machine with CentOs.
I have deployed application in eks. When i run the container it's working properly but while accessing on browser it's not working. What's the reason might be?
You will have to check the firewall rules in cloud, by default the connections won't be allowed.
mas copiar toda a API pra imagem não é errado? Como você faria caso não copiasse toda a API pra imagem?
I have created a Kubernetes cluster consisting of one master node and two worker nodes. Now I want to deploy an application in this cluster. Kindly guide me through this process.
Follow the videos in Kubernetes playlist
dear the application is not working in 31110 port... could please suggest me another port
Your teaching style is super.....
Thank you. You can set the port according to your use case. By default the service may get a port however you can set the node port in the manifest file.
Hi. Instead of docker push , I used `eval $(minikube docker-env)` and build docker image again. Next when I apply deployment.yml pods is returning ErrImagePull. How can I fix this ?
Its clear that the image is missing or not correct.
hi i have no idea but mine was only working after port forwarding direct svc URL not working any idea?
What is the error you were getting?
Great! Please help me How to deploy a node.js application with redis on kubernetes?
What is the purpose of redis in your nodejs app?
Can you explain kubernetes security and logs .. please
Sure. I will consider it for upcoming video's.
@@Thetips4you eagerly waiting for kubernetes security and logs
Heavy ❤ kudos to you.
Thank you so much
Kabil bhai i have a situation suppose there are 3 windows system, systemA SystemB & systemC where in systemA my Jenkins is installed and i want to copy some jars from SystemB to SystemC through Jenkins job and want to delete some folders from SystemB also please tell me how i will achieve this waiting 🥺🥺
Easy way is add both SystemB and SytemC and slave machine in your jenkins. In the pipeline define the stage with label to define on which slave should run . Copy the file to a common location accessible from both machines & Delete the folder SystemB, Copy the files to SystemC from common accessible location.
@@Thetips4you bro don't know how to create pipeline job but i know how to use jobs only
u created a loadbalancer service when u have only one pod of the application!
imagepullbackoff!!
ERROR: failed to solve: failed to read dockerfile: archive/tar: unknown file mode ?rwxr-xr-x
I am getting this error.Can anyone help
When are you getting this error?
errimagepullerror pls solve the issue
Check the internet connectivity.
@@Thetips4you thanku sir but deployment is not creating so pods are also not running, pls help
apiVersion: apps/v1
kind: Deployment
metadata:
name: nodeapp-deployment
labels:
app: nodeapp
spec:
replicas: 2
selector:
matchLabels:
app: nodeapp
template:
metadata:
labels:
app: nodeapp
spec:
containers:
- name: nodeserver
image: growithpro/nodeapp:latest
imagePullPolicy: Always
ports:
- containerPort: 3000
resources:
limits:
memory: 512Mi
cpu: "1"
requests:
memory: 256Mi
cpu: "0.2"
this is my deployment.yml
my docker image name is growithpro/nodeapp:latest
but deployment is not running
pls help
Can you check the logs or describe the deployment to get more details why it is not up.