Step-by-Step Guide to Set Up Multi-Node Kubernetes Cluster with Kubeadm

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024
  • Hello folks, Welcome to DevOps Pro!
    In this video, we will show you a step-by-step guide to set up a multi-node Kubernetes cluster with Kubeadm, including one master and two workers.
    ===============Topics covered==================
    👉 Introduction to Kubeadm
    👉 Setting up the Master Node
    👉 Joining Worker Nodes to the Cluster
    👉 Configuring Kubernetes Networking
    👉 Verifying the Cluster Status
    👉 Deploying an Application on the Cluster
    ✳️ Github Repo - [github.com/dev...]
    Don't forget to like, comment, and subscribe for more content, and check out our complete CKA playlist link in the description below to stay updated with our latest videos.
    Thank you for watching, and let's get started on mastering Kubernetes and cracking the CKA exam!
    ================= ⭐️⭐️⭐️⭐️⭐️⭐️⭐️ =================
    📝 Get access to the notes and ppt of each video - www.youtube.co...
    =================== Let's Connect ===================
    🤝 LinkedIn - / riya-soni-3bb5111a0
    🤝 LinkedIn - / devopsproin
    🤝 Twitter - / devopsproin
    🤝 Facebook - / devopsproin
    🤝 Instagram - / devopsproin
    🤝 Discord Community - / discord
    ==================================================
    👉 Site Link:- devopspro.in/
    👉 Kubernetes Playlist Link - • Certified Kubernetes A...
    👉 Linux Playlist Link - • Linux Tutorials For Be...
    👉 Crash Course Playlist Link - • DevOps Crash Courses i...
    👉 DevOps Pro English Channel - / @devopsproenglish

ความคิดเห็น • 108

  • @DevOpsPro
    @DevOpsPro  ปีที่แล้ว

    Please help us with your valuable feedback - forms.gle/E9r3xvTxnLPKz9Hw9

  • @allenabishek1478
    @allenabishek1478 ปีที่แล้ว +2

    Wow, i tried so many times to make this work, even the official flannel docs werent helping, yours worked smooth as silk. Thank you for this video. It is a great contribution to mankind. I am no longer stuck in Minikube Single node pod cluster. Thanks so Much!

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว

      I'm thrilled to hear that it worked for you! Keep rocking the DevOps journey! 🚀😊

  • @sharathj6663
    @sharathj6663 11 หลายเดือนก่อน +1

    I refered to many videos but was not able to install kubeadm and finally successfully installed by refering your video thanks a lot
    😊

    • @DevOpsPro
      @DevOpsPro  11 หลายเดือนก่อน

      I'm delighted my video helped you get kubeadm installed successfully.

  • @AshishThakur-s2d
    @AshishThakur-s2d ปีที่แล้ว +1

    Great explanation, I have been struggling for the last 3days but after watching your video it's working fine.

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว

      Thank you! I'm glad the video was helpful in resolving the issues you were facing.

  • @rushiketmodak2140
    @rushiketmodak2140 ปีที่แล้ว +1

    Finally wait is over, thank you so much for this video ❤

  • @mubasshirabdulrauf1769
    @mubasshirabdulrauf1769 ปีที่แล้ว +1

    thanks a lot for the explaination, since from 4-5 days i was struggling for the flannel repository and because of this video i got it, Thanks a lot mam🔥🔥🔥🌟

    • @DevOpsPro
      @DevOpsPro  6 หลายเดือนก่อน

      Great

  • @raneesh5240
    @raneesh5240 ปีที่แล้ว +1

    No errors in the all steps. Thanks & Awesome!

  • @venkatkagital5504
    @venkatkagital5504 ปีที่แล้ว +1

    Awesome explanation, was roaming multiple sties with issue finally got solution here, thx a lot mam👍

  • @princeakash4295
    @princeakash4295 ปีที่แล้ว +1

    You're simply superb, I tried installing referrening lot of articles but i coudn't. But you made it in 8 min videos. You're goddess

  • @ifranqureshi537
    @ifranqureshi537 ปีที่แล้ว +2

    Seriously, I was struggling to establish cluster since a while with docker as a container runtime, but it was continuously throwing an error, might it be a compatibility issue with K8s. Now, I tried your approach with ContainerD, fortunately it worked this time, Thankyou Riya, pls continue with the entire CKA content!

    • @ifranqureshi537
      @ifranqureshi537 ปีที่แล้ว

      From tht comment to ths comment cleared my CKA😃

  • @pratikkshirsagar6481
    @pratikkshirsagar6481 ปีที่แล้ว

    Lifesaver video.Worked on AWS instances without any error

  • @guru7932
    @guru7932 ปีที่แล้ว +4

    Plz need video on cluster creation with kops ...🎉🎉

  • @abrarsyed7177
    @abrarsyed7177 ปีที่แล้ว +2

    This video is very helpful for me thnx and please make more video

  • @ganeshshinde8854
    @ganeshshinde8854 ปีที่แล้ว +1

    Awesome, this worker like a charm !! Thanks a lot !!

    • @naveen__renati
      @naveen__renati ปีที่แล้ว

      Did you try it on AWS or Azure

  • @Aparijat_
    @Aparijat_ 11 หลายเดือนก่อน +1

    Great Work !! Easy Stable Deployment..

    • @DevOpsPro
      @DevOpsPro  11 หลายเดือนก่อน

      Glad you like it!

  • @ChitraLakshmi-k7y
    @ChitraLakshmi-k7y 7 หลายเดือนก่อน

    I am now able to make a cluster in AWS, Thanks a lot... was struggling from last few days

    • @DevOpsPro
      @DevOpsPro  6 หลายเดือนก่อน

      Glad it helped

  • @ajayprajapati2453
    @ajayprajapati2453 4 หลายเดือนก่อน +1

    Nice video to understand flow

  • @MdNaseem-jc5ib
    @MdNaseem-jc5ib ปีที่แล้ว +1

    congratulations 1k Sub

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว +1

      Many many thanks

  • @sohamarora1837
    @sohamarora1837 7 หลายเดือนก่อน +1

    Very nice. Thanks

  • @shaikhimraanahemadshaikhra6859
    @shaikhimraanahemadshaikhra6859 ปีที่แล้ว +1

    Finally done thanks ...

  • @chickendinner120
    @chickendinner120 20 วันที่ผ่านมา +2

    Hi Reya, can you plz tell how you make your terminal root@master and root@worker1 plz, I am very beginner and have almost no idea making it like that. Currently in my ubuntu 20 in my terminal it is like username@hp
    Plz

  • @abrarsyed7177
    @abrarsyed7177 ปีที่แล้ว +4

    When I joint node to cluster . I show v=5 error. After that i go to the security group of instances and opened the ports 0-65535 after that my problem had solved

    • @jdxec
      @jdxec ปีที่แล้ว

      Hello aws bro need help

  • @chanchalsoni2374
    @chanchalsoni2374 ปีที่แล้ว +1

    Working fine

  • @jamalrizwana
    @jamalrizwana 11 หลายเดือนก่อน +1

    Good one

  • @praveensadul9154
    @praveensadul9154 11 หลายเดือนก่อน +1

    Nice video !!.but how we can install specific versions ?

    • @DevOpsPro
      @DevOpsPro  11 หลายเดือนก่อน

      We will try to make a video on it.

  • @yosharma5210
    @yosharma5210 ปีที่แล้ว

    Nice video but in commands ko explain bhi krte to aur acha hota
    Like what is containerd what is kernel modules whats its purpose

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว +1

      Those things are planned in another video, if included everything in this video, then it would be a very long video. Stay tuned

  • @Kk-rl7nv
    @Kk-rl7nv ปีที่แล้ว +1

    @DevOpsPro: can you help to understand why we use Continderd and which Kubernetes version is required, why we set cggroup to true etc, steps are not clearly mentioned,

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว

      Thank you for watching the video and providing your feedback. I apologise if the steps were not clearly mentioned. Let me address your questions:
      1. Why use Containerd? Containerd is used as the container runtime in this setup. It provides a reliable and secure environment for running containers. It is one of the supported container runtime for Kubernetes.
      2. Which Kubernetes version is required? You can use the latest stable version available at the time of installation.
      3. Why set cggroup to true? Setting SystemdCgroup to true in the containerd configuration file ensures that the containers are isolated using the cgroup driver, which is necessary for proper resource management and control within the Kubernetes environment. This configuration is recommended for running Kubernetes.

  • @HasanRazzaq-d8n
    @HasanRazzaq-d8n ปีที่แล้ว +1

    Very well explained. How i can make multi master cluster, i have 6 machines and i want 3 masters and 3 workers. Thanks

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว

      Thank you for your feedback! To create a multi-master cluster with 6 machines, you can follow the same steps mentioned in the video, but configure 3 of your machines as masters and the remaining 3 as workers.

  • @_man.on.strings__
    @_man.on.strings__ 6 หลายเดือนก่อน

    i am getting this error -
    E: Unable to locate package kubeadm
    E: Unable to locate package kubelet
    E: Unable to locate package kubectl
    E: Unable to locate package kubernetes-cni

  • @primesoftinc
    @primesoftinc ปีที่แล้ว +1

    Hi, in this scenario how can use AWS nlb for ingress ? can you explain ?

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว

      Sure, I will create a separate video tutorial for setting up AWS NLB for ingress in a multi-node Kubernetes cluster using Kubeadm. Stay tuned for the upcoming tutorials!

  • @NimishKashyap
    @NimishKashyap ปีที่แล้ว +1

    Hello Riya I have a doubt. I tried creating the multi-node cluster in Azure VM and the Kubeadm join command is referring to the private IP address of the master VM. That is not an issue and the cluster got connected. But now the issue is when I tried to install ingress-controller the IP address that is getting assigned is the private one instead of public IP address and I can't access the cluster from outside. Could you please help with it?

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว +2

      Thank you for your comment. To resolve the issue, you can try using the Azure Load Balancer to assign a public IP address to your Ingress Controller. This should allow you to access the cluster from outside. If you need any further assistance, feel free to ask.

  • @cloudwarrior2097
    @cloudwarrior2097 ปีที่แล้ว +1

    Plz add the github link for the readme file in the description or comment, its difficult to find...

  • @suraj_dhakad
    @suraj_dhakad ปีที่แล้ว +1

    Mam aws instance pe ubuntu lounch kiya lekin usme single node ke liye minikube nai chal raha bahut try kar liya please uspe video banayie naa

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว

      Sure, will make a video on that.

    • @suraj_dhakad
      @suraj_dhakad ปีที่แล้ว

      @@DevOpsPro thank you🙏

  • @jagadeeshkumar3600
    @jagadeeshkumar3600 ปีที่แล้ว +1

    Could you please share git repo link

  • @satishtxt
    @satishtxt 9 หลายเดือนก่อน

    Can you make video of multi-node cluster using kubesprey ?

    • @DevOpsPro
      @DevOpsPro  6 หลายเดือนก่อน

      Absolutely! I appreciate your suggestion. I'll create a video on it.

  • @Mr_XYX
    @Mr_XYX 9 หลายเดือนก่อน

    While running kubectl apply -f https;//........ I am getting error that is Unable to connect to the server: dial tcp [2405:200:1607:2820:41::36]:443: i/o timeout. What to do ??

    • @DevOpsPro
      @DevOpsPro  9 หลายเดือนก่อน

      Check your network connectivity and ensure the URL is correct. If issues persist, verify firewall settings.

  • @abrarsyed7177
    @abrarsyed7177 ปีที่แล้ว +1

    Hello mam pleace make more video k8s

  • @chanchalsoni2374
    @chanchalsoni2374 ปีที่แล้ว +1

    #devopspro

  • @anjalishreya9890
    @anjalishreya9890 ปีที่แล้ว

    May be silly question riya ye aapne ek Ubuntu machine terminal p 3 machine kaise aaya i mean ssh kiya aws ya it's other approach. I do have Ubuntu os in my system but m arif Minikube hi install kr payi 2 machine k liye vm install karnaa padaa

  • @pranavverma37
    @pranavverma37 ปีที่แล้ว +1

    how u create 3 machine master and worker??

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว

      I created ec2 instances on aws manually.

  • @39vignesh.m35
    @39vignesh.m35 ปีที่แล้ว

    Why setup cluster primarily join worker node then after install pod network

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว

      To ensure network setup functions smoothly during the cluster setup process.

  • @Nikunjtechhive
    @Nikunjtechhive ปีที่แล้ว

    great explanation, can i create dynamic worker with join master node.?

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว

      Yes, you can create dynamic worker nodes and join them to a master node.

  • @AbhayAR
    @AbhayAR ปีที่แล้ว +2

    I am TL L2 in Gemini Solutions, I would like to hire you in my team

    • @chickendinner120
      @chickendinner120 20 วันที่ผ่านมา

      Hii
      Any guidance for ECE background people to be able to work in product company, guruji?

    • @AbhayAR
      @AbhayAR 20 วันที่ผ่านมา

      @@chickendinner120 Why not?

  • @shivrajtikk
    @shivrajtikk ปีที่แล้ว

    Hii why i am unable to connect with pod service name but when i use service ip it works.both my mongodb app and node app are in default namespace

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว

      It sounds like a DNS issue. Make sure your applications are using the cluster's DNS for service discovery. You can check your DNS settings in Kubernetes and ensure your services are correctly labeled.

  • @ajayprajapati2453
    @ajayprajapati2453 4 หลายเดือนก่อน

    I want to setup single node cluster on debian machine. Could you please share me link for the same

    • @DevOpsPro
      @DevOpsPro  4 หลายเดือนก่อน

      You can use the same instructions on your single node.

  • @princepranav9021
    @princepranav9021 7 หลายเดือนก่อน

    How add three nodes there in terminal
    worker 1 , worker 2, master??

    • @DevOpsPro
      @DevOpsPro  6 หลายเดือนก่อน

      Use separate terminals

    • @chickendinner120
      @chickendinner120 20 วันที่ผ่านมา

      @@DevOpsPro but how Reya? I mean i can make three terminals then i can also make it sudo -i and make it root, but how to name it such that it holds the name, bcz even if i make three when i enter hostname it shows me last name i mean it overrides other name

  • @muditmohantyagi
    @muditmohantyagi 4 หลายเดือนก่อน +2

    Ye master aur worker 1,2 kaise bane yeto batao

    • @chickendinner120
      @chickendinner120 20 วันที่ผ่านมา

      kuch idea mila apko, Tyagiji terminal me yeh kese banate ha
      ?

    • @muditmohantyagi
      @muditmohantyagi 2 วันที่ผ่านมา +2

      @@chickendinner120 no

    • @chickendinner120
      @chickendinner120 วันที่ผ่านมา +1

      @@muditmohantyagi finally mujhe pata chala inhone sayad virtual machine k use kia ha toh isme laptop me virtual box install Krna padta ha aur usme Ubuntu server install Krna hota ha to inka ip address ek hoga using that ip address we can log in to that vm using ssh and password

    • @chickendinner120
      @chickendinner120 วันที่ผ่านมา +1

      @@muditmohantyagi ok

  • @itsabhi.
    @itsabhi. ปีที่แล้ว

    my Kubernetes cluster loses connection automatically after sometime? I don't know why this is happening again and again ! Is there any solution for this

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว

      To address the connection loss issue in your Kubernetes cluster, it's important to ensure stable network connectivity between nodes, validate resource availability, check for system-level issues, and verify the correct configuration steps. If the problem persists, additional investigation may be necessary to identify the root cause. Please provide more details so that we can assist you further.

  • @yogitasharma4054
    @yogitasharma4054 ปีที่แล้ว +1

    #devopspro.

  • @anshuagnihotri9489
    @anshuagnihotri9489 ปีที่แล้ว

    @DevOpsPro I have an error in my worker node that is connection 8080 refused...pls tell me how I can solve it pls

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว

      Chances are there is some firewall blocking the access to port, can you check that once. If using aws, you might look into security groups, and if using another cloud, might have to look into ufw config

    • @anshuagnihotri9489
      @anshuagnihotri9489 ปีที่แล้ว

      @@DevOpsPro I check it...AWS I'm using and no blocking there

    • @anshuagnihotri9489
      @anshuagnihotri9489 ปีที่แล้ว

      All traffic alow for both instances...also try manually open 8080,80

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว

      Since AWS isn't causing the blockage, ensure your application is correctly listening on the ports, and check for any application-level settings that could cause the issue.

  • @vaibhav.v6403
    @vaibhav.v6403 ปีที่แล้ว

    Which linux flavour did you use?

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว +1

      Ubuntu 22.04 LTS

  • @shaikhrehan6974
    @shaikhrehan6974 6 หลายเดือนก่อน

    I need urgent help any one to help me i am getting error while using this documentation

    • @DevOpsPro
      @DevOpsPro  6 หลายเดือนก่อน

      what issue are you facing

    • @shaikhrehan6974
      @shaikhrehan6974 6 หลายเดือนก่อน

      @@DevOpsPro getting error while joining worker node

  • @subhrakantasahoo8075
    @subhrakantasahoo8075 ปีที่แล้ว

    E: Unable to locate package kubeadm
    E: Unable to locate package kubelet
    E: Unable to locate package kubectl
    E: Unable to locate package kubernetes-cni

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว

      Can you explain the issue a bit more.
      Which operating system are you using? and have you followed all the steps in sequence

  • @ravitejadarla3882
    @ravitejadarla3882 ปีที่แล้ว

    I Can see only these 2lines in this file What to do please tell me
    CMD = sudo nano /etc/fstab
    LABEL=cloudimg-rootfs / ext4 discard,errors=remount-ro 0 1
    LABEL=UEFI /boot/efi vfat umask=0077 0 1

    • @ravitejadarla3882
      @ravitejadarla3882 ปีที่แล้ว

      In the end, when am trying to connect the worker with the master i ended up like
      error execution phase preflight: couldn't validate the identity of the API Server: Get "172.31.57.130:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
      To see the stack trace of this error execute with --v=5 or higher

    • @DevOpsPro
      @DevOpsPro  ปีที่แล้ว

      The error message error execution phase preflight: couldn't validate the identity of the API Server means that the worker node cannot connect to the API server on the master node. Please check the firewall on the worker node and make sure that it is not blocking traffic to port 6443.

    • @smrutichandan497
      @smrutichandan497 11 หลายเดือนก่อน

      @@DevOpsPro I checked the firewall in my worker nodes by running "sudo ufw status" and found it inactive. But still getting the error and not able to join my master. Could you please help how to resolve it