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"
  • Наука та технологія

КОМЕНТАРІ • 78

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

    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

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

      Thank you my friend. Appreciate you taking time and giving the feedback. Really happy to hear your kind word's.

  • @fidelfrost
    @fidelfrost 2 роки тому +5

    Great! This is about the best tutorial I've seen on Kubernetes. Love it!

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

      Thank you so much for your feedback.

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

    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

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

    Thank you. I followed your tutorial and it worked perfectly !

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

      Thanks, that is great to hear.

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

    I really love your tutorial, hope to see your next videos, thank your for all your effors

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

    Nice job. Thanks for sharing this walkthrough!

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

      You are welcome and thank you for your feedback.

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

    This is a channel that can help me learn a lot experience about operation system and deployment. Thanks for dedicating your efforts

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

      You are welcome and thanks a lot my friend for your support.

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

    Learned a ton! Thanks!

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

      Happy to hear your feedback. Thanks

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

    Thanks for uploading the video :) Appreciated :)

  • @PrinceyaAmmari2030
    @PrinceyaAmmari2030 Місяць тому +1

    it worked perfectly thank you a lot ^^

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

    A very nice step by step guide!!

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

      Thank you for your feedback.

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

    Great tutorial. Thanks!

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

    very good tutorial, thanks!

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

    Explained very well

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

      Thank you friend for your feedback.

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

    Thank you for this Tutorial

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

    excelent it works!

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

    Great efforts

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

    Simply WOWWWWWWWWWW....

  • @tihamshafi6402
    @tihamshafi6402 20 днів тому +1

    can you make more of these videos like using helm, and terraform? with the same app?

    • @Thetips4you
      @Thetips4you  20 днів тому

      I need to find more time :) I will look at your request.

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

    Thanks

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

    Why I am not getting the test result after hitting public ip to port 3000 ,in web server??

  • @TinNguyen-nk8xg
    @TinNguyen-nk8xg 2 роки тому +2

    whether the nodePort in service.yml can be duplicated by an application using a random port?

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

      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.

  • @Ajaysharma-ox9rr
    @Ajaysharma-ox9rr Рік тому

    thanks a lot for the awsome content
    i am working with node and mongo how cani i include both in kubernetes ?

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

      Use the approach and customize to your needs.

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

    Are you using localpc? And what OS? Or you are using cloud?

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

      I am using a virtual machine with CentOs.

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

    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?

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

      You will have to check the firewall rules in cloud, by default the connections won't be allowed.

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

    mas copiar toda a API pra imagem não é errado? Como você faria caso não copiasse toda a API pra imagem?

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

    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.

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

      Follow the videos in Kubernetes playlist

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

    dear the application is not working in 31110 port... could please suggest me another port
    Your teaching style is super.....

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

      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.

  • @saninshakya8206
    @saninshakya8206 3 місяці тому

    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 ?

    • @Thetips4you
      @Thetips4you  3 місяці тому

      Its clear that the image is missing or not correct.

  • @shm8296
    @shm8296 8 місяців тому

    hi i have no idea but mine was only working after port forwarding direct svc URL not working any idea?

    • @Thetips4you
      @Thetips4you  8 місяців тому

      What is the error you were getting?

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

    Great! Please help me How to deploy a node.js application with redis on kubernetes?

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

      What is the purpose of redis in your nodejs app?

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

    Can you explain kubernetes security and logs .. please

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

      Sure. I will consider it for upcoming video's.

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

      @@Thetips4you eagerly waiting for kubernetes security and logs

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

    Heavy ❤ kudos to you.

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

    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 🥺🥺

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

      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.

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

      @@Thetips4you bro don't know how to create pipeline job but i know how to use jobs only

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

    u created a loadbalancer service when u have only one pod of the application!

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

    imagepullbackoff!!

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

    ERROR: failed to solve: failed to read dockerfile: archive/tar: unknown file mode ?rwxr-xr-x
    I am getting this error.Can anyone help

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

      When are you getting this error?

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

    errimagepullerror pls solve the issue

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

      Check the internet connectivity.

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

      @@Thetips4you thanku sir but deployment is not creating so pods are also not running, pls help

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

    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

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

      Can you check the logs or describe the deployment to get more details why it is not up.