Get the App
SLTechnology News&Howtos  ›  Servers  › 

(enterprise environment deployment) K8S multi-node deployment-load balancing-UI page

Shulou Source: shulou.com Published: 2022-06-03 09:23:38 11月13日 Update

Enterprise environment deployment) K8S multi-node deployment-load balancing-UI page

Environment that needs to be prepared:

6 centos7 devices:

192.168.136.167 master01

192.168.136.168 node1

192.168.136.169 node2

192.168.136.170 master02

192.168.136.171 lb1

192.168.136.172 lb2

VIP:192.168.1.100

The steps of the experiment:

1: self-signed ETCD certificate

2:ETCD deployment

3:Node install docker

4:Flannel deployment (write subnet to etcd first)

-master-

5: self-signed APIServer certificate

6: deploy APIServer components (token,csv)

7: deploy controller-manager (specify apiserver certificate) and scheduler components

-node-

8: generate kubeconfig (bootstrap,kubeconfig and kube-proxy.kubeconfig)

9: deploy kubelet components

10: deploy kube-proxy components

-join the cluster-

11:kubectl get csr & & kubectl certificate approve permit method certificate to join the cluster

12: add a node node

13: view the kubectl get node node

1. Etcd cluster building 1. Self-sign etcd certificate on master01 [root@master ~] # mkdir k8s [root@master ~] # cd k8s/ [root@master k8s] # mkdir etcd-cert [root@master k8s] # mv etcd-cert.sh etcd-cert [root@master k8s] # lsetcd-cert etcd.sh [root@master k8s] # vim cfssl.shcurl-L https://pkg.cfssl.org/R1.2/cfssl_linux-amd64-o / usr/local/bin/cfsslcurl-L https://pkg .cfssl.org / R1.2/cfssljson_linux-amd64-o / usr/local/bin/cfssljsoncurl-L https://pkg.cfssl.org/R1.2/cfssl-certinfo_linux-amd64-o / usr/local/bin/cfssl-certinfochmod + x / usr/local/bin/cfssl / usr/local/bin/cfssljson / usr/local/bin/cfssl-certinfo [root@master K8s] # bash cfssl.sh [root@master K8s] # ls / usr/local/bin/cfssl cfssl-certinfo cfssljson [root@ Master k8s] # cd etcd-cert/ `Definitions CA certificate`cat > ca-config.json dashboard-csr.json

Tags: Node certificate input file service mode address configuration status directory component generation script copy token sequence serial number picture authentication environment Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Microsoft vpn Apple Huawei