K8S single master deployment 1: environmental planning, ETCD deployment
Overview of Experimental Environment Planning
Use the VMwork virtual machine to deploy a small cluster of single master and dual node, and install etcd on both master and node to implement the etcd cluster.
The software adopts the version software name version Linux system Linux version 4.8.5Kubernetes1.9DockerDocker version 19.03.5Etcdv3.3.10 server role assignment address installation component master192.168.142.220kube-apiserver kube-controller-manager kube-scheduler etcdnode1192.168.142.136kubelet kube-proxy docker flannel etcdnode2192.168.142.132kubelet kube-proxy docker flannel etcd previous attention
All experimental virtual machines have turned off the selinux core protection function
Set up a working directory to store the binary package [root@master] # cd / [root@master /] # mkdir k8s install ETCD database (three-node backup) download ca certificate creation on the master side, Management tool cfssl [root@master k8s] # curl-L https://pkg.cfssl.org/R1.2/cfssl_linux-amd64-o / usr/local/bin/cfssl [root@master k8s] # curl-L https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64-o / usr/local/bin/cfssljson [root@master k8s] # curl-L https://pkg.cfssl.org/R1.2/cfssl-certinfo_linux-amd64-o / usr/local / bin/cfssl-certinfo [root@master k8s] # chmod + x / usr/local/bin/cfssl / usr/local/bin/cfssljson / usr/local/bin/cfssl-certinfo generate ca certificate / / define ca certificate Generate ca certificate configuration file [root@master k8s] # cat > ca-config.json