In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
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
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.