K8S 1.9.0二进制包部署(一)

网友投稿 275 2022-11-13

K8S 1.9.0二进制包部署(一)

master 192.168.254.53node1 192.168.254.54node2 192.168.254.55

版本信息:k8s V1.9.0 下载 v3.2.10flannel v0.9.0docker 17.05.0-ce

systemctl disable firewalldsystemctl stop firewalld

1、安装docker

先更新yum源,这里用163的源yum install -y wgetcd /etc/yum.repos.dwget clean all/usr/bin/yum makecache更新系统yum update编辑生成docker的yum源tee /etc/yum.repos.d/docker.repo <<-'EOF'[dockerrepo]name=Docker Repositorybaseurl=info docker-engineyum install docker-engine -y

systemctl enable docker.servicesystemctl start docker.servicesystemctl status docker.service

2、etcd

cp etcd etcdctl /usr/binchmod 755 /usr/bin/etcdchmod 755 /usr/bin/etcdctlmkdir -p /app/etcd/datamkdir -p /app/etcd/conf

vi /usr/lib/systemd/system/etcd.service[Unit]Description=Etcd ServerAfter=network.target[Service]Type=notifyWorkingDirectory=/app/etcd/dataEnvironmentFile=/app/etcd/conf/etcd.confExecStart=/usr/bin/etcd[Install]WantedBy=multi-user.target

vi /app/etcd/conf/etcd.confETCD_NAME=defaultETCD_DATA_DIR="/app/etcd/data/default.etcd"ETCD_LISTEN_CLIENT_URLS="daemon-reloadsystemctl enable etcd.servicesystemctl start etcd.servicesystemctl status etcd.service

etcdctl --versionetcdctl cluster-healthetcdctl -C cluster-healthcurl -L ~]# etcdctl set testkey "hello world"hello world[root@testapp3 ~]# etcdctl get testkeyhello world

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:JAVA集合类汇总
下一篇:如何有效学习PLC,这些知识点让你事半功倍
相关文章

 发表评论

暂时没有评论,来抢沙发吧~