Get the App
SLTechnology News&Howtos  ›  Servers  › 

K8S single master deployment 1: environmental planning, ETCD deployment

Shulou Source: shulou.com Published: 2022-06-02 06:14:31 10月02日 Update

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

Tags: Node certificate file address configuration name generation communication inter script software push service authentication health binary command member aspect version Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker NVidia Xiaomi vpn Redmi