Kubernetes single node deployment ETCD tutorials
This article is a tutorial on how to deploy ETCD on a single node in kubernetes. The editor thought it was very practical, so I shared it with you to learn. The following information is about the deployment of ETCD.
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