brandpaster.blogg.se

Install kubernetes kubeadm centos 7
Install kubernetes kubeadm centos 7










#Install kubernetes kubeadm centos 7 install#

Systemctl enable docker & systemctl start dockerĬreate proper yum repo files so that we can use yum commands to install the components of Kubernetes. Also, enable the docker service so that the docker service starts on system restarts. On both the master and worker nodes:īe a root user. Hope you are ready with all that is written in the prerequisites. There are a few commands that we need to run on the master as well as the worker node. Henceforward we will call them master and worker nodes. Decide which EC2 instance would be the master/manager and which would be worker/slave. Needless to say, you need to have putty/terminal to connect to your EC2 instances.Ĭonnect to both the ec2 instances using two putty terminals.Both the AWS EC2 instances need to be on the same VPC and preferably same availability zone.While launching AWS ec2 instances, make sure that you open all the ports in the related security groups.In that case, most of the commands remain the same. However, you can use any centos-based system such as RHEL as well. This AMI also has some pre-installed libraries that AWS does for you. In this tutorial, I have used Amazon Linux 2 AMI when I lunched EC2 instances, which is based on centos Linux.

install kubernetes kubeadm centos 7 install kubernetes kubeadm centos 7

You need to have created at least one AWS EC2 instance for acting as Master node and at least one AWS EC2 instance to act as a worker node.Let’s start with the prerequisites first. This is a guide for setting up a Kubernetes cluster over AWS EC2 instances from scratch.










Install kubernetes kubeadm centos 7