Use on Ubuntu offline Quick Installation K8S v1.11.1
0, download the installation package file
https://pan.baidu.com/s/1nmC94Uh-lIl0slLFeA1-qw
v1.11.1 file size of about 630M
1, the system environment
system version
Ubuntu 4.18 LTS kubernete v1.11.1
Machine number x3
Configuration 1 core 2G 20G hard disk
k8s-master001 192.168.98.110 k8s-node001 192.168.98.111 k8s-node002 192.168.98.112
2, ready to work (in the following three machines)
2.1 Ubuntu 18.04 LTS
The default installation slightly
2.2 Installation file transfer tool, disabled SWAP, turn off the firewall, turn off SELINUX, configure the host name, IP address
-i the sudo APT the install lrzsz -Y The swapoff -a Sed -i '/ the swap / S / ^ / # /' / etc / fstab APT-GET Update APT-GET upgrade # turn off the firewall, turn off the SELINUX, configure the host name, IP address, step slightly reboot
2.3 Installation Docker
tar xzvf docker_v18.03.1_ce.tar.gz cd docker_v18.03.1_ce && ./install.sh
2.4 installation program and the like Kubeadm
to reverse the xzvf 002.001.k8s.deb.v1.11.1.tar.gz cd k8s.deb.v1.11.1 && ./install.sh
3, installation Kubeadm
3.1 On Master import image and initialize a cluster
3.1.1 Master introduced into mirror
xzvf 002.002.k8s.master.v1.11.1.tar.gz tar cd k8s.master.v1.11.1 && ./loadall.sh tar xzvf 003.kubeadm_init.tar.gz cd kubeadm_init && # install.sh pay attention to modify the script initialization network address # View client LOG file by adding the command # this time the master should be on it.
3.2 On node001 & node002 will join the cluster NODE
3.2.1 introduced mirrored to all Node
tar xzvf 002.002.k8s.node.v1.11.1.tar.gz cd k8s.node.v1.11.1 && ./loadall.sh
# Use command to initialize the completion of the cluster.
3.3 On Master installed Dashboard
3.3.1 execute the installation script
TAR xzvf 004.kubernetes-dashboard.tar.gz CD-kubernetes Dashboard && ./install.sh
3.4 Installing Nginx-ingress
Be installed on all nodes of the tar-ingress.tar.gz xzvf 005.nginx CD-Nginx Ingress && ./install_on_node.sh then installed on all nodes Master the tar-ingress.tar.gz xzvf 005.nginx CD-Ingress && Nginx ./install_on_master.sh