Войти
  • 7837Просмотров
  • 2 года назадОпубликованоDistro Domain

How to install Kubernetes on Rocky Linux: Complete Setup Tutorial

In this video I show you how to install and configure a Kubernetes cluster for your home or business needs! 👉 Kubernetes ingress EXPLAINED with simple diagrams! Join Discord: For business inqueries or consultation send me an email to: info@ ###### Configure firewal on master node ###### firewall-cmd --permanent --add-port={6443,2379,2380,10250,10251,10252,10257,10259,179}/tcp firewall-cmd --permanent --add-port=4789/udp firewall-cmd --reload ###### Configure firewal on worker node ###### firewall-cmd --permanent --add-port={179,10250,30000-32767}/tcp firewall-cmd --permanent --add-port=4789/udp firewall-cmd --reload ###### Add the overlay and br_netfilter kernel modules on all the nodes ###### vim /etc/modules-load.d/ overlay br_netfilter ###### Add the following kernel parameters on all the nodes ###### vim /etc/sysctl.d/ = 1 = 1 = 1 sysctl --system ###### Install container runtime containerd on all the nodes ###### yum install -y yum-utils yum-config-manager --add-repo dnf install -y ###### Configure containerd ###### mv /etc/containerd/ /etc/containerd/ containerd config default > /etc/containerd/ vim /etc/containerd/ SystemdCgroup = true sudo systemctl restart containerd sudo systemctl enable containerd ###### Configure kubernetes repo on all the nodes ###### vim /etc/ [kubernetes] name=Kubernetes baseurl= :/stable:/ enabled=1 gpgcheck=1 gpgkey= :/stable:/ exclude=kubelet kubeadm kubectl cri-tools kubernetes-cni ###### Install kubernetes tools on all the nodes ###### yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes ###### Enable kublet service on all the nodes ###### systemctl enable kubelet ###### Create user kube & kubernetes configuration ###### useradd -G wheel kube passwd kube mkdir -p $HOME/.kube sudo cp -i /etc/kubernetes/ $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/config ###### Install Calico ###### kubectl apply -f ###### Label worker nodes ###### kubectl label node worker01 =worker For business inqueries or consultation send me an email to: info@ 0:00 - Intro 0:42 - Swap, Hostname & SELinux configuration 3:18 - Master firewall configuration 3:42 - Master kernel modules configuraiton 4:48 - Master host file configuration 5:24 - Containerd installation & configuration 7:42 - Installing Kubernetes 9:29 - Initializing the Kubernetes cluster 10:29 - Kubernetes user & configuration 12:49 - Kubernete cluster status verification 13:19 - Worker nodes configuration 14:05 - Worker kernel modules, containerd & kubernetes 14:37 - Verifying all nodes have all tools installed 15:10 - Joining the worker nodes to the cluster 16:09 - Installing Calico network service 17:12 - Verify all pods and Calico installation 17:55 - Assigning roles to the worker nodes 18:40 - Deploying and nginx container 20:16 - Nginx container verification #kubernetes #kubernetespods #kubernetestutorialforbeginners #kubernetesforbeginners #rockylinux #devops #devopstraining #cloudcomputing #cicd #docker #dockercontainer #containerization –––––––––––––––––––––––––––––– Midnight Stroll by Ghostrifter Creative Commons — Attribution-NoDerivs 3.0 Unported — CC BY-ND 3.0 Free Download: ––––––––––––––––––––––––––––––