Setup Kubernetes Cluster Using Kubeadm [Multi-node]

Поделиться
HTML-код
  • Опубликовано: 31 июл 2024
  • In this video, you will learn to set up a multi-node kubernetes cluster using Kubeadm with one master and two worker nodes.
    Documentation: devopscube.com/setup-kubernet...
    Github Repo: github.com/techiescamp/kubead...
    👉 If you are preparing for CKA, CKAD, CKS, or KCNA exam, get a 20% discount today using code DCUBE20 at kube.promo/certs. It is a limited-time offer.
    📚 𝗖𝗛𝗔𝗣𝗧𝗘𝗥𝗦
    00:00 Kubeadm Introduction
    01:24 Kubeadm Setup Prerequisites
    02:32 Setup Overview
    03:15 Kubeadm Workflow
    05:17 Kubeadm Cluster Setup
    12:08 Install Kubernetes Metrics Server
    13:48 Deploy Nginx Application
    14:47 Configure Kubeconfig File in Workstation
    🚀 𝗖𝗢𝗠𝗣𝗥𝗘𝗛𝗘𝗡𝗦𝗜𝗩𝗘 𝗗𝗘𝗩𝗢𝗣𝗦 𝗧𝗨𝗧𝗢𝗥𝗜𝗔𝗟𝗦
    1. 40+ Kubernetes tutorials: bit.ly/kubernetes-guides
    2. 20+ Jenkins Tutorials: bit.ly/jenkins-guides
    3. DevOps Learning Roadmaps: bit.ly/devops-roadmaps
    ✍️ 𝗥𝗘𝗖𝗢𝗠𝗠𝗘𝗡𝗗𝗘𝗗 𝗟𝗘𝗔𝗥𝗡𝗜𝗡𝗚 𝗣𝗟𝗔𝗧𝗙𝗢𝗥𝗠𝗦
    1. 𝗘𝗱𝘂𝗰𝗮𝘁𝗶𝘃𝗲.𝗶𝗼: bit.ly/educativeio
    2. 𝗞𝗼𝗱𝗲𝗞𝗹𝗼𝘂𝗱: bit.ly/dkodekloud (Coupon: KKCUBE10)
    3. 𝗖𝗼𝘂𝗿𝘀𝗲𝗿𝗮: bit.ly/free-coursera
    4. 𝗨𝗱𝗮𝗰𝗶𝘁𝘆: bit.ly/free-udacity
    5. 𝗟𝗶𝗻𝘂𝘅 𝗙𝗼𝘂𝗻𝗱𝗮𝘁𝗶𝗼𝗻: bit.ly/linux-foundation-free
    🤝 𝗕𝗘 𝗠𝗬 𝗙𝗥𝗜𝗘𝗡𝗗:
    💌 𝗘𝗺𝗮𝗶𝗹 𝗻𝗲𝘄𝘀𝗹𝗲𝘁𝘁𝗲𝗿: devopscube.com/newsletter/
    🌍 𝗪𝗲𝗯𝘀𝗶𝘁𝗲/𝗯𝗹𝗼𝗴: devopscube.com
    🔗 𝗟𝗶𝗻𝗸𝗲𝗱𝗜𝗻: / bibinwilson
    📸 𝗜𝗻𝘀𝘁𝗮𝗴𝗿𝗮𝗺: / devopscube
    🐦 𝗧𝘄𝗶𝘁𝘁𝗲𝗿: / bibinwillson
    #kubernetes #kubernetesforbeginners #kubernetestutorial #devopstutorial #devops
  • НаукаНаука

Комментарии • 68

  • @devopscube
    @devopscube  Год назад +3

    📙 𝗥𝗘𝗟𝗔𝗧𝗘𝗗 𝗥𝗘𝗦𝗢𝗨𝗥𝗖𝗘𝗦
    1. 𝗞𝘂𝗯𝗲𝗿𝗻𝗲𝘁𝗲𝘀 𝗟𝗲𝗮𝗿𝗻𝗶𝗻𝗴 𝗖𝗼𝘂𝗿𝘀𝗲: techiescamp.com/kubernetes
    2. 𝗞𝘂𝗯𝗲𝗿𝗻𝗲𝘁𝗲𝘀 𝗧𝘂𝘁𝗼𝗿𝗶𝗮𝗹𝘀: bit.ly/kubernetes-guides
    3. 𝗙𝗿𝗲𝗲 𝗗𝗲𝘃𝗢𝗽𝘀 𝗥𝗼𝗮𝗱𝗺𝗮𝗽 𝗖𝗼𝘂𝗿𝘀𝗲: bit.ly/dvops-roadmap

  • @yassinouakka126
    @yassinouakka126 5 месяцев назад +1

    man you hit the spot, i have been searching for almost 3 days about what you are saying in this video, you are a true mentor❤

  • @ajk7151
    @ajk7151 10 месяцев назад

    crisp and to the point. excellent tutorial! thank you.

  • @vatsav1984
    @vatsav1984 Год назад +1

    Great - i tried Bibin's script few years ago - worked like a charm . Though i had already set up my own local k8s cluster in a more tedious and laborious manner . But great to have a push button solution for setting up a k8s cluster locally.

  • @cloudspikes_inc
    @cloudspikes_inc 7 месяцев назад

    This is a 10/10 rating content. Everything so perfect, accurately automated and reliable solution. Thank you so much @devopscube for sharing such a wonderful piece of art. God bless you!!!!

  • @panchaldineshb
    @panchaldineshb 5 месяцев назад

    WOW --- very clean and so helpful...

  • @gabrielvalentin3106
    @gabrielvalentin3106 9 месяцев назад +1

    Excellent! Thanks for your efforts!

  • @zenobikraweznick
    @zenobikraweznick Год назад +1

    This is awesome, thank you 👍

  • @santoshperumal129
    @santoshperumal129 Год назад

    Great content you are doing really cool stuff

  • @oxcart4004
    @oxcart4004 9 месяцев назад +2

    I was getting depressed looking at the official kubernetes documentation. There are so many options, which is a good thing, but sometimes you just need the "cookbook approach" to get things up and running just so you can have a look around. Great video and good online resources. Just even going through the online scripts is very helpful and educational. I got a cluster running and the only thing I had to change at all in the scripts were ethernet port names... my ports were eno, not eth.

    • @devopscube
      @devopscube  9 месяцев назад

      Glad it was helpful :)

  • @gilgameshnightcore2885
    @gilgameshnightcore2885 11 месяцев назад

    This is by far my most favorite Kubernetes Cluster Setup, so much details and so easy to understand. However, does your script includes the networking and storage setup for Kubernetes Cluster yet? And if it doesn't, do you have any plans that guides us on how to setup those things?

  • @rohithsai5265
    @rohithsai5265 5 месяцев назад

    Content and slides 🔥🔥🔥

  • @babanmalhi6168
    @babanmalhi6168 5 месяцев назад

    Thank you so much.

  • @luongquyen1037
    @luongquyen1037 4 месяца назад

    thank you so much !

  • @alfagroupkz
    @alfagroupkz 3 месяца назад

    Magnificent! Get subscribed

  • @amac1211
    @amac1211 5 месяцев назад

    Awesome content, clear and concise. Was curious if I wanted to utilize containerd instead of cri-o, what would you change in the script for that?

  • @killerman3635
    @killerman3635 2 месяца назад

    Struggled a lot. Thanks sir this is working fine😊

  • @ThuanTran-fn2yx
    @ThuanTran-fn2yx 8 месяцев назад

    Great, thank you so much for the script, I installed on 2 computer locally, everything works fine except DNS, the pod, service looks correct, but inside the pods, connection to CoreDNS service got connection refused, I am not sure what could be the reason. I tried to use the debug guide on k8s document but not help much.

  • @akaspires037
    @akaspires037 7 месяцев назад

    one doubt sir, here we configured 2 slaves manually so if we enable autoscaling and load balancer if load demands more than 3 servers .. are we going to do manually or through autoscaling it is going to create another server

  • @user-wi6nl8zl3b
    @user-wi6nl8zl3b 6 месяцев назад

    Hi sir, actually we have 3 workstations at office n planning to create the kubernetes cluster in these things. can i follow these steps for the setup, will this be usefulll for uat and prod deployment?

  • @rajarajan8869
    @rajarajan8869 8 месяцев назад

    Hi
    I have a few questions
    1. Why do you use ip tables and enable bridge network in this case iptables apply on the ec2 instance and other public cloud.
    2.I have launched master and worker nodes and deployment the nginx web server on the master node how to monitor the pod from the master node or worker node it's possible to access the dashboard to manage the pods
    3. How to enable node port in the public cloud and how to access the nginx web server in the public

  • @am7-p
    @am7-p Год назад +1

    When most of community use container.d, what is the good reason using CRI-O? I wonder it is like do something different this time - or there is a benefit for using CRI-O?

    • @devopscube
      @devopscube  Год назад +1

      Most people use kubeadm setup for learning and certification preparation. I used cri-o because in CKS certifications, there are tasks where you need to use crictl utiltity to debug issues.

  • @sivasatya4265
    @sivasatya4265 Год назад +1

    That was a nice & useful lecture , Thankyou & one question sir how do you setup the aws ssh in vscode is there any guide for that if it is there it is very helpful.Thankyou once agian

  • @imtiazali1628
    @imtiazali1628 11 месяцев назад

    Thanks for such detailed video. Can you please create a video for ingress for point to any existing resource. I tried many tuturials but still struggling.

    • @devopscube
      @devopscube  11 месяцев назад

      Will do .. What issue are you facing?

  • @shayelasharma1039
    @shayelasharma1039 11 месяцев назад

    what if we use loadbalancer instead, I am not getting the external ip... I am launching cluster on aws ec2 instances, any reason for it? plz revert

    • @devopscube
      @devopscube  11 месяцев назад

      You can ..you need to point to the master node private IP.. May I know the reason why you are not getting an external IP? Are you working in a private subnet inside an org network?

  • @strickmans
    @strickmans 9 месяцев назад

    Getting this error: Found multiple cri endpoint on the host. please define which one you wish to use by setting the crisocket
    When running the master script

    • @devopscube
      @devopscube  9 месяцев назад

      I guess there is more than one container runtime.:which VM image are you using?

  • @vacuumsealer8527
    @vacuumsealer8527 9 месяцев назад

    ./common.sh: line 50: curl: command not found
    Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
    gpg: no valid OpenPGP data found.
    Helps me pls?

    • @devopscube
      @devopscube  9 месяцев назад

      Looks like curl is not available in the server ..install curl first and then run common.sh

  • @karnanspark9012
    @karnanspark9012 9 месяцев назад

    Hi brother, using local two linux machine can i do the same ? Is it possible then share the document for the onpremise deployment 😅

    • @devopscube
      @devopscube  9 месяцев назад

      It is the same Karnan

  • @39vignesh.m35
    @39vignesh.m35 10 месяцев назад

    Sir for installing kubernates version 1.26.1 we should use calico v3. 25.0 ? Cni version is important.. For mach k8s version

    • @devopscube
      @devopscube  9 месяцев назад +1

      Not exactly. But try to have the latest one to avoid issues

    • @39vignesh.m35
      @39vignesh.m35 9 месяцев назад

      @@devopscube sir last doubt I deploed postgres ha in k8s refering devopscube page can I use for production and k8s version 1.22.0 support postgres ha latest version

    • @39vignesh.m35
      @39vignesh.m35 9 месяцев назад

      @@devopscube sir I use physical virtual machine not cloud server

  • @omerfethicaner8907
    @omerfethicaner8907 Год назад

    hello, you are the best thank you so much, Can record kubernetes cluster update?

    • @devopscube
      @devopscube  Год назад

      Will publish it soon. You can check my blog for detailed upgrade steps devopscube.com/upgrade-kubernetes-cluster-kubeadm/

  • @user-sj2sh4dk2s
    @user-sj2sh4dk2s 8 месяцев назад

    @devopscube your tutorial is not working. I use AWS created 3 instances, deployed the common file and master as per tutorial, deployed the sample file also and only one pod is accessible on port 32000 also when I include a ingress controller the ingress controller failes to get installed regardless what I do. Here are some networking issues in plase with calico

    • @devopscube
      @devopscube  8 месяцев назад

      Will take a look ..

  • @ashwinkm3156
    @ashwinkm3156 11 месяцев назад

    Awesome
    But it is mostly an airgap network in actual production environment.
    So, no internet.
    Any waybto make it work in an airgap environment?

    • @devopscube
      @devopscube  11 месяцев назад

      You will have to download all the images to the control plane first..that is the only internet requirement..rest of the packages should be available with the respective satellite servers.

    • @ashwinkm3156
      @ashwinkm3156 11 месяцев назад

      @@devopscube But all the control plane and workers will be in an airgap environment!

    • @devopscube
      @devopscube  11 месяцев назад

      @@ashwinkm3156 what I meant is, download images for control plane node. You can get in touch with the network/security team for downloading those images through proxy. or ask them to upload to the central private repository. Also try kurl.sh/..its specifically designed for aigapped environments

    • @ashwinkm3156
      @ashwinkm3156 11 месяцев назад

      @@devopscube 👌 thank you so much

  • @rohanrustagi7857
    @rohanrustagi7857 Год назад

    sir do we use these type of cluster in production or other environment??

    • @mallikarjunkonemane6908
      @mallikarjunkonemane6908 Год назад

      They use deployment stategy like blue green and canary deployment!!..

    • @devopscube
      @devopscube  Год назад

      Hi Rohan, kubeadm setup follows all the best practices for the cluster. I personally haven't heard about anyone using it for production. People use solutions like Kubespray for the setup in on-premises. But from a learning perspective or test clusters with a small number of worker nodes, kubeadm is a great solution.
      When it comes to cloud, most organizations used manged solutions like AWS EKS, Google cloud GLE etc.

    • @hangoutbuddy
      @hangoutbuddy Год назад

      Hi Bibin Thanks for the Nice video. I want to setup this on My AWS cloud..Now will I face any problem as manually you cannot change IP?

    • @devopscube
      @devopscube  Год назад +1

      @hangout buddy, no. In fact the demo was done on AWS instances ..give it a try ..if you face any issues or have any doubts, drop a comment here or in the blog. I will take a look at it
      You can also use the terraform script in the repo to provision instances on Aws ..

    • @hangoutbuddy
      @hangoutbuddy Год назад

      ​@@devopscube It worked like a charm 😁. Tagged you 🙂 on LinkedIn post as a gratitude ❤

  • @creazyengineer8080
    @creazyengineer8080 5 месяцев назад

    not working
    E: Malformed entry 51 in list file /etc/apt/sources.list (Component)
    E: Malformed entry 1 in list file /etc/apt/sources.list.d/kubernetes.list (Component)
    E: The list of sources could not be read.

  • @visalpattyal8133
    @visalpattyal8133 6 дней назад

    I have observed that the pods in my cluster is not able to install the packages when exec to the pod . How to resolve this? My /etc/resolve.conf content is search sample.svc.cluster.local svc.cluster.local cluster.local us-west-2.compute.internal
    nameserver 10.96.0.10
    options ndots:5