![]() Take a copy from the last line “kubeadm join 10.0.2.15:6443 –token edvbbv.51hy5e2hgaxr1b4h –discovery-token-ca-cert-hash sha256:01db7c5913e363c099dc7a711550b8399c41f7cc92bda6b5ff06d6b8382a73e2” in the previous screenshot as we will be using it in the slave node to make it join the cluster. ![]() sudo kubeadm init -pod-network-cidr=10.244.0.0/16 Initialize Kubernetes On your master node, use the next command to initialize the Kubernetes master node. sudo apt install kubeadm Kubernetes Master Server Initialization Before installing Kubernetes, make sure that your system is not using the swap memory because Kubernetes will refuse to operate if your Ubuntu is using the swap memory. Verify your installation, use the command: kubeadm version Kubeadm Version Note that at the time of writing this tutorial only the Xenial Kubernetes repository is available so it will be the one we will use for our installation. sudo apt-add-repository "deb kubernetes-xenial main" ![]() curl -s | sudo apt-key add Add Kubernetes Signing Key ![]() Install curl package using the next command. Perform the following steps on Master as well as slave. sudo systemctl enable docker Enable Docker Service Kubernetes Installation ![]() So, once the installation completes successfully, execute the following command on both nodes to enable the docker service. By default, the docker service is not enabled. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |