Step-by-Step: Guide Installing a Kubernetes Cluster using Kubeadm on Ubuntu | Mutli Node Cluster
Автор: DevOps&Cloud World
Загружено: 2023-03-19
Просмотров: 956
Описание:
Step by Step Guide Installing a Kubernetes Cluster using Kubeadm on Ubuntu
1 master and 2 worker node cluster.
_________________Run on All Node included Master and Worker ___________________
Step 1: Install Docker
2 sudo apt-get update
3 sudo apt-get install docker.io
Step 2: Start and Enable Docker
4 sudo systemctl enable docker
5 sudo systemctl start docker
6 sudo systemctl status docker
Step 3: Add Kubernetes Signing Key
7 curl -s https://packages.cloud.google.com/apt... | sudo apt-key add
8 sudo apt-get install curl
Step 4: Add Software Repositories
9 sudo apt-get install software-properties-common && sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main"
Step 5: Kubernetes Installation Tools
10 sudo apt-get install -y kubelet kubeadm kubectl
11 sudo apt-mark hold kubeadm kubelet kubectl
12 kubeadm version
Step 6: Begin Kubernetes Deployment
sudo systemctl stop ufw
swapoff -a
Step 7: Assign Unique Hostname for Each Server Node (Optional)
16 sudo hostnamectl set-hostname master-node
16 sudo hostnamectl set-hostname worker1
_________________Run on Master Only ___________________
Step 8: Initialize Kubernetes on Master Node
17 sudo kubeadm init --control-plane-endpoint IPPUTHERE --pod-network-cidr=10.244.0.0/16 --upload-certs
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
Step 9: Deploy Network to Cluster
kubectl apply -f https://raw.githubusercontent.com/cor...
kubectl get pods --all-namespaces
__________________________________________________________
Step 10: Join Worker Node to Cluster
kubeadm join 209.97.141.179:6443 --token bbsxwg.jhba75nlzruejip0 \
--discovery-token-ca-cert-hash sha256:a77c0629ad30cbe426c683cdd98a0b02841532e4ab7292b358f5403266b31081
kubectl get nodes
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: