Ubuntu 18.04
Sponsored Link

Kubernetes : Kubeadm : Install2018/10/22

 
Install Kubeadm to Configure Multi Nodes Kubernetes Cluster.
On this example, Configure This example is based on the emvironment like follows.
For System requirements, each Node has uniq Hostname, MAC address, Product_uuid.
MAC address and Product_uuid are generally already uniq one if you installed OS on phisical machine or virtual machine with common procedure. You can see Product_uuid with the command [dmidecode -s system-uuid].
-----------+---------------------------+--------------------------+------------
           |                           |                          |
       eth0|10.0.0.30              eth0|10.0.0.51             eth0|10.0.0.52
+----------+-----------+   +-----------+----------+   +-----------+----------+
|   [ dlp.srv.world ]  |   | [ node01.srv.world ] |   | [ node02.srv.world ] |
|      Master Node     |   |      Worker Node     |   |      Worker Node     |
+----------------------+   +----------------------+   +----------------------+

 
First, Apply Common Settings on All Nodes.
[1]
[2] Change some settings on All Nodes for System requirements.
root@dlp:~#
swapoff -a

root@dlp:~#
vi /etc/fstab
# comment out for swap line

#
/dev/mapper/ubuntu--vg-swap_1 none swap sw 0 0
[3] Install Kubeadm on All Nodes.
root@dlp:~#
apt -y install apt-transport-https
root@dlp:~#
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -

OK
root@dlp:~#
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list

root@dlp:~#
apt update

root@dlp:~#
apt -y install kubeadm kubelet kubectl
# only enabling, do not run yet

root@dlp:~#
systemctl enable kubelet

Matched Content