Build K8S cluster: kubernetes-1.11.3
Build K8S cluster kubernetes 1.11.3
1.1 Lab Architecture:
Kubernetes architecture
Node1: master 10.192.44.129
Node2: node2 10.192.44.127
Node3: node3 10.192.44.126
Etcd architecture
Node1: master 10.192.44.129
Node2: node 10.192.44.127
Node3: node 10.192.44.126
Harbor server
Redhat128.example.com
10.192.44.128
two。 Installation
2.1 configure system-related parameters (each):
2.1.1 temporarily disable selinux
Sed-I's impulse SELINUX automatically perpendicular to SELINUX.SELINUXPROUXPROPERATIVE etc/sysconfig/selinux
Setenforce 0
2.1.2 temporarily close swap, permanently close swap lines in direct comment fstab
Swapoff-a
2.1.3 enable forward
Iptables-P FORWARD ACCEPT
2.1.3 configure forwarding-related parameters, otherwise errors may occur
Cat config.json
Cfssl print-defaults csr > csr.json
# create the following ca-config.json file according to the format of config.json file
# Expiration time is set to 87600h
Cat > ca-config.json / etc/kubernetes/controller-manager / etc/kubernetes/scheduler > ~ / .bashrc
Source / .bashrc
7. Install the flannel network plug-in
7.1Configuring flannel through yum installation (per node)
Yum install-y flannel
7.2 configure service file (per node)
Cat > / usr/lib/systemd/system/flanneld.service / etc/sysconfig/flanneld / usr/lib/systemd/system/kubelet.service / usr/lib/systemd/system/kube-proxy.service / etc/kubernetes/config busyboxdeploy.yaml