We need to add the Kubernetes official repository to the repositories list: cat <<EOF | sudo tee /etc//kubernetes.repo kubectl: the CLI used to control the cluster.kubelet: the component/service that runs on all of the machines in the cluster and manages them.kubeadm: the command to create or destroy the cluster.Now all is set, and we are ready to install Kubernetes on CentOS.Īctually, to install Kubernetes, we need to install the following three packages: To use Kubernetes, your machine must firstly have a working container runtime, but in our example we will be using you can check this tutorial if you haven’t installed docker yet. You do that with: cat <<EOF | sudo tee /etc/sysctl.d/k8s.confĪnd now there is a full list of the ports you must allow to install Kubernetes on CentOS: For the master nodes: In addition to that, you must let iptables see bridged traffic: to do so, you must set -nf-call-iptables is set to 1 in your sysctl config. To enable it, you can use the following command: sudo modprobe br_netfilter To be able to run Kubernetes, you must make sure that br_netfilter module is loaded. If you’re machine has swap, you can disable it by deleting the swap definition line in the file “ /etc/fstab” and then disable it by using: sudo swapoff -a Sudo yum -y update & sudo yum -y install htop checking resources To be able to use htop on Centos, you need to install it first from epel-releases with sudo yum -y install epel-release You can check your resources with the command “htop” To check your distribution, you can us: cat /etc/*-release check distribution If you are using Ubuntu based distribution, please check Install Kubernetes on Ubuntu. Swap disabled for the service to work properly. Kubernetes custom port allowed on your security group and your firewall.Full public or private network connectivity between all machines in the cluster.Your machines must run CentOS 7 /RHEL 7 / Fedora 25+.Before installing Kubernetes, your VMs must respect a set of conditions first:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |