In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Cluster introduction
Master node: 10.20.10.103 name=cnvs-kubm-101-103role: [controlplane,worker,etcd] user: k8suser10.20.10.104 name=cnvs-kubm-101-104role: [controlplane,worker,etcd] user: k8suser10.20.10.105 name=cnvs-kubm-101-105role: [controlplane,worker,etcd] user: k8suser cluster management node: 10.20.10.103vip:10.20.10.253node node: 10.20.10.106 name=cnvs-kubnode-101-106 role: [controlplane,worker Etcd] user: k8suser 10.20.10.107 name=cnvs-kubnode-101-107 role: [controlplane,worker,etcd] user: k8suser10.20.10.108 name=cnvs-kubnode-101-108 role: [controlplane,worker,etcd] user: k8suser10.20.10.118 name=cnvs-kubnode-101-118 role: [controlplane,worker,etcd] user: k8suser 10.20.10.120 name=cnvs-kubnode-101-120 role: [controlplane,worker,etcd] user: k8suser10.20.10.122 name=cnvs-kubnode-101-122role: [controlplane,worker Etcd] user: k8suser10.20.10.123 name=cnvs-kubnode-101-123 role: [controlplane,worker,etcd] user: k8suser 10.20.10.124 name=cnvs-kubnode-101-124 role: [controlplane,worker,etcd] user: k8suser Cluster installation preparation
Rke deployment does not allow root users. You need to create a new cluster deployment account or add an existing account to the docker user group.
This time, add the existing k8suser account to docker.
# stand-alone usermod k8suser-G docker # batch ansible kub-all-m shell-a "usermod k8suser-G docker" # Verification [root@cnvs-kubm-101-103kub-deploy] # ansible kub-all-m shell-a "id k8suser" 10.20.10.107 | CHANGED | rc=0 > > uid=1000 (k8suser) gid=1000 (k8suser) groups=1000 (k8suser) 992 (docker) # kub-all contains the cluster user method groupadd docker & & useradd rancher-G dockerecho "123456" for all hosts in the cluster | passwd-- stdin rancherssh secret-free login
On the installation host, get through ssh password-free authentication with all nodes of the installation cluster (install cluster users).
Ansible kub-all-m shell-a "echo 'ssh-rsa AAAAB3NzaC1yaLuTb' > > / home/k8suser/.ssh/authorized_keys"
Rancher rke download mkdir-p / etc/rke/ download address https://www.rancher.cn/docs/rancher/v2.x/cn/install-prepare/download/rke/unzip rke_linux-amd64.zip mv rke_linux-amd64 / usr/bin/rke [root@cnvs-kubm-101-103 rke] # chmod 755 / usr/bin/rke [root@cnvs-kubm-101-103 rke] # rke-vrke version v0.2.8 generate cluster configuration file
Address: public domain name or IP address
User: the user who can run the docker command needs to be a normal user.
Role: list of Kubernetes roles assigned to the node
Ssh_key_path: the path of the SSH private key used to authenticate the node (default is ~ / .ssh/id_rsa)
Cat > cluster.yml
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.