Install and Configure Kubernetes (k8s) 1.13 on
Ubuntu 18.04 LTS / Ubuntu 18.10
Kubernetes is a free and open source container orchestration tool. It is used to deploy container
based applications automatically in cluster environment, apart from this it also used to manage
Docker containers across the kubernetes cluster hosts. Kubernetes is also Known as K8s.
In this article I will demonstrate how to install and configure two node Kubernetes (1.13) using
kubeadm on Ubuntu 18.04 / 18.10 systems. Following are the details of my lab setup:
I will be using three Ubuntu 18.04 LTS system, where one system will act as Kubernetes Master
Node and other two nodes will act as Slave node and will join the Kubernetes cluster. I am
assuming minimal 18.04 LTS is installed on these three systems.
Kubernetes Master Node – (Hostname: k8s-master , IP : 192.168.1.70, OS : Minimal Ubuntu
18.04 LTS)
Kubernetes Slave Node 1 – (Hostname: k8s-worker-node1, IP: 192.168.1.80 , OS : Minimal
Ubuntu 18.04 LTS)
Kubernetes Slave Node 2 – (Hostname: k8s-worker-node2, IP: 192.168.1.90 , OS : Minimal
Ubuntu 18.04 LTS)
Note: Kubernetes Slave Node is also known as Worker Node
Let’s jump into the k8s installation and configuration steps.
Step:1) Set Hostname and update hosts file
Login to the master node and configure its hostname using the hostnamectl command
Login to Slave / Worker Nodes and configure their hostname respectively using the hostnamectl
command,
Add the following lines in /etc/hosts file on all three systems,
linuxtechi@localhost:~$ sudo hostnamectl set-hostname k8s-worker-node1
linuxtechi@localhost:~$ exec bash
linuxtechi@k8s-worker-node1:~$
linuxtechi@localhost:~$ sudo hostnamectl set-hostname k8s-worker-node2
linuxtechi@localhost:~$ exec bash
linuxtechi@k8s-worker-node2:~$
评论