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
Please help us with your valuable feedback - forms.gle/E9r3xvTxnLPKz9Hw9
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!
I'm thrilled to hear that it worked for you! Keep rocking the DevOps journey! 🚀😊
I refered to many videos but was not able to install kubeadm and finally successfully installed by refering your video thanks a lot
😊
I'm delighted my video helped you get kubeadm installed successfully.
Great explanation, I have been struggling for the last 3days but after watching your video it's working fine.
Thank you! I'm glad the video was helpful in resolving the issues you were facing.
Finally wait is over, thank you so much for this video ❤
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🔥🔥🔥🌟
Great
No errors in the all steps. Thanks & Awesome!
Awesome explanation, was roaming multiple sties with issue finally got solution here, thx a lot mam👍
Happy to help
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
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!
From tht comment to ths comment cleared my CKA😃
Lifesaver video.Worked on AWS instances without any error
Plz need video on cluster creation with kops ...🎉🎉
This video is very helpful for me thnx and please make more video
Awesome, this worker like a charm !! Thanks a lot !!
Did you try it on AWS or Azure
Great Work !! Easy Stable Deployment..
Glad you like it!
I am now able to make a cluster in AWS, Thanks a lot... was struggling from last few days
Glad it helped
Nice video to understand flow
congratulations 1k Sub
Many many thanks
Very nice. Thanks
Finally done thanks ...
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
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
Hello aws bro need help
Working fine
Working fine for me
Good one
Nice video !!.but how we can install specific versions ?
We will try to make a video on it.
Nice video but in commands ko explain bhi krte to aur acha hota
Like what is containerd what is kernel modules whats its purpose
Those things are planned in another video, if included everything in this video, then it would be a very long video. Stay tuned
@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,
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.
Very well explained. How i can make multi master cluster, i have 6 machines and i want 3 masters and 3 workers. Thanks
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.
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
Hi, in this scenario how can use AWS nlb for ingress ? can you explain ?
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!
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?
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.
Plz add the github link for the readme file in the description or comment, its difficult to find...
Added
@@DevOpsPro Thank-you😊
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
Sure, will make a video on that.
@@DevOpsPro thank you🙏
Could you please share git repo link
Done
Can you make video of multi-node cluster using kubesprey ?
Absolutely! I appreciate your suggestion. I'll create a video on it.
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 ??
Check your network connectivity and ensure the URL is correct. If issues persist, verify firewall settings.
Hello mam pleace make more video k8s
#devopspro
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
SSh kiya hai
how u create 3 machine master and worker??
I created ec2 instances on aws manually.
Why setup cluster primarily join worker node then after install pod network
To ensure network setup functions smoothly during the cluster setup process.
great explanation, can i create dynamic worker with join master node.?
Yes, you can create dynamic worker nodes and join them to a master node.
I am TL L2 in Gemini Solutions, I would like to hire you in my team
Hii
Any guidance for ECE background people to be able to work in product company, guruji?
@@chickendinner120 Why not?
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
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.
I want to setup single node cluster on debian machine. Could you please share me link for the same
You can use the same instructions on your single node.
How add three nodes there in terminal
worker 1 , worker 2, master??
Use separate terminals
@@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
Ye master aur worker 1,2 kaise bane yeto batao
kuch idea mila apko, Tyagiji terminal me yeh kese banate ha
?
@@chickendinner120 no
@@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
@@muditmohantyagi ok
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
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.
#devopspro.
@DevOpsPro I have an error in my worker node that is connection 8080 refused...pls tell me how I can solve it pls
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
@@DevOpsPro I check it...AWS I'm using and no blocking there
All traffic alow for both instances...also try manually open 8080,80
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.
Which linux flavour did you use?
Ubuntu 22.04 LTS
I need urgent help any one to help me i am getting error while using this documentation
what issue are you facing
@@DevOpsPro getting error while joining worker node
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
Can you explain the issue a bit more.
Which operating system are you using? and have you followed all the steps in sequence
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
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
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.
@@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