Hyper-v
kubernetes cluster on ubuntu on ec2
kubernetes cluster on ubuntu on ec2
#kubernetes #cluster #ubuntu #ec2
“Yepp Buzz”
Commands are in the first pinned comment below…
because youTube don’t allow new channels to upload Links in description and one of the command have a link in it.
so bear with it.
Thank you..
source
To see the full content, share this page by clicking one of the buttons below |
Part 1 —————————————————
Master ————
sudo su
hostname master
bash
clear
Node ————–
sudo su
hostname master
bash
clear
Part 2 —————————————————–
Both Master & Node ————-
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y docker.io
sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg
echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubelet kubeadm kubectl
snap install kube-apiserver
Part 3 —————————————————–
Master —————
sudo kubeadm init –pod-network-cidr=10.244.0.0/16
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
Node ———-
paster the kube adm join command which is in this format: sudo kubeadm join <master-node-ip>:<master-node-port> –token <token> –discovery-token-ca-cert-hash <hash>
Part 4 —————————————————————-
Master —————–
kubectl get nodes
—————————————————————————————————————
CONGRATULATIONS FOR YOUR NEW KUBERNETES CLUSTER ON UBUNTU ON EC2
😇
Wow, I just watched your video, and I have to say, you're a lifesaver! I was struggling with my security group settings in EC2, and it was driving me crazy that my worker nodes couldn't connect to the master. Your clear and concise explanation made it all seem so simple. Thanks to your video, I not only solved my problem but also gained a better understanding of EC2 security groups. Keep up the great work, and please keep sharing your knowledge with us
kindly share the commands that u used
Thank you very much
the connection to the server 6443 was refused – did you specify the right host or port how can I solve this
Very helpful brother. Thanks for the video