In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
4.3 install etcd
Install etcd on master, and this article corresponds to 192.168.100.20
Download the etcd installation package
Wget https://github.com/coreos/etcd/releases/download/v3.2.7/etcd-v3.2.7-linux-amd64.tar.gz
Unpack and transfer the etcd,etcdctl under etcd-v3.2.7-linux-amd64 to the / usr/local/bin directory
Cp etcd-v3.2.7-linux-amd64/ {etcd,etcdctl} / usr/local/bin
Make etcd startup script
Cat etcd.sh
#! / bin/sh
ETCD_ADDR= http://0.0.0.0:2379
ETCD_DATA_DIR=/var/lib/etcd
ETCD_NAME=kubernetes
! Test-d $ETCD_DATA_DIR & & mkdir-p $ETCD_DATA_DIR
Cat? / usr/lib/systemd/system/etcd.service
[Unit]
Description=Etcd Server
[Service]
ExecStart=/usr/local/bin/etcd-listen-client-urls='$ETCD_ADDR'-advertise-client-urls='$ETCD_ADDR'
[Install]
WantedBy=multi-user.target
EOF
Systemctl daemon-reload
Systemctl enable etcd
Systemctl start etcd
Start etcd
Systemctl start etcd.service
4.4 install apiserver,controller-manager,scheduler,kubectl
Install apiserver on master
Apiserver,controller-manager,sheduler and other components are in the kubernetes package, so download the kubernetes package
Wget https://storage.googleapis.com/kubernetes-release/release/v1.6.10/kubernetes-server-linux-amd64.tar.gz
Unpack and copy the kube-apiserver,kube-controller-manager,kube-scheduler,kubectl,kubefed under kubernetes/server/bin to / usr/local/bin
Cp kubernetes/server/bin/ {kube-apiserver,kube-controller-manager,kube-scheduler,kubectl,kubefed} / usr/local/bin
Make the startup script of apiserver and controller-manager,scheduler
Apiserver startup script
Cat apiserver.sh
#! / bin/sh
KUBE_LOGTOSTDERR=true
KUBE_LOG_LEVEL=2
KUBE_ETCD_SERVERS= http://192.168.100.20:2379
KUBE_CLUSTER_IP=10.10.10.0/24
INSECURE_BIND_ADDR=0.0.0.0
INSECURE_PORT=8080
LOG_DIR=/var/log/kubernetes
Cat
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.