部署etcd

github部署访问链接:https://github.com/etcd-io/etcd/releases/

ETCD_VER=v3.5.1

# choose either URL
GOOGLE_URL=https://storage.googleapis.com/etcd
GITHUB_URL=https://github.com/etcd-io/etcd/releases/download
DOWNLOAD_URL=${GOOGLE_URL} rm -f /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
rm -rf /tmp/etcd-download-test && mkdir -p /tmp/etcd-download-test curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /tmp/etcd-download-test --strip-components=1
rm -f /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz /tmp/etcd-download-test/etcd --version
/tmp/etcd-download-test/etcdctl version
/tmp/etcd-download-test/etcdutl version [root@mcw4 ~]$ ETCD_VER=v3.5.1
[root@mcw4 ~]$
[root@mcw4 ~]$ # choose either URL
[root@mcw4 ~]$ GOOGLE_URL=https://storage.googleapis.com/etcd
[root@mcw4 ~]$ GITHUB_URL=https://github.com/etcd-io/etcd/releases/download
[root@mcw4 ~]$ DOWNLOAD_URL=${GOOGLE_URL}
[root@mcw4 ~]$
[root@mcw4 ~]$ rm -f /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
dir -p /tmp/etcd-download-test curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /tmp/etcd-download-test --strip-components=1
rm -f /tmp[root@mcw4 ~]$ rm -rf /tmp/etcd-download-test && mkdir -p /tmp/etcd-download-test
[root@mcw4 ~]$
[root@mcw4 ~]$ curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
/etcd-${ETCD_VER}-linux-amd64.tar.gz /tmp/etcd-download-test/etcd --version
/tmp/etcd-download-test/etcdctl version
/tmp/etcd-download-test/etcdutl version % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 18.5M 100 18.5M 0 0 1798k 0 0:00:10 0:00:10 --:--:-- 3705k
[root@mcw4 ~]$ tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /tmp/etcd-download-test --strip-components=1
etcd-v3.5.1-linux-amd64/Documentation/
etcd-v3.5.1-linux-amd64/Documentation/dev-guide/
etcd-v3.5.1-linux-amd64/Documentation/dev-guide/apispec/
etcd-v3.5.1-linux-amd64/Documentation/dev-guide/apispec/swagger/
etcd-v3.5.1-linux-amd64/Documentation/dev-guide/apispec/swagger/v3lock.swagger.json
etcd-v3.5.1-linux-amd64/Documentation/dev-guide/apispec/swagger/v3election.swagger.json
etcd-v3.5.1-linux-amd64/Documentation/dev-guide/apispec/swagger/rpc.swagger.json
etcd-v3.5.1-linux-amd64/Documentation/README.md
etcd-v3.5.1-linux-amd64/README-etcdutl.md
etcd-v3.5.1-linux-amd64/READMEv2-etcdctl.md
etcd-v3.5.1-linux-amd64/README-etcdctl.md
etcd-v3.5.1-linux-amd64/README.md
etcd-v3.5.1-linux-amd64/etcdutl
etcd-v3.5.1-linux-amd64/etcdctl
etcd-v3.5.1-linux-amd64/etcd
[root@mcw4 ~]$ rm -f /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
[root@mcw4 ~]$
[root@mcw4 ~]$ /tmp/etcd-download-test/etcd --version
etcd Version: 3.5.1
Git SHA: e8732fb5f
Go Version: go1.16.3
Go OS/Arch: linux/amd64
[root@mcw4 ~]$ /tmp/etcd-download-test/etcdctl version
etcdctl version: 3.5.1
API version: 3.5
[root@mcw4 ~]$ /tmp/etcd-download-test/etcdutl version
etcdutl version: 3.5.1
API version: 3.5 启动etcd并打开2379端口
[root@mcw4 ~]$ etcd -listen-client-urls http://10.0.0.134:2379 -advertise-client-urls http://10.0.0.134:2379
{"level":"info","ts":"2022-01-02T22:34:03.141+0800","caller":"etcdmain/etcd.go:72","msg":"Running: ","args":["etcd","-listen-client-urls","http://10.0.0.134:2379","-advertise-client-urls","http://10.0.0.134:2379"]}
{"level":"warn","ts":"2022-01-02T22:34:03.141+0800","caller":"etcdmain/etcd.go:104","msg":"'data-dir' was empty; using default","data-dir":"default.etcd"}
{"level":"info","ts":"2022-01-02T22:34:03.141+0800","caller":"embed/etcd.go:131","msg":"configuring peer listeners","listen-peer-urls":["http://localhost:2380"]}
{"level":"info","ts":"2022-01-02T22:34:03.141+0800","caller":"embed/etcd.go:139","msg":"configuring client listeners","listen-client-urls":["http://10.0.0.134:2379"]}

测试etcd能用

[root@mcw4 ~]$ etcdctl  --endpoints=10.0.0.134:2379 put name "mcw"
OK
[root@mcw4 ~]$ etcdctl --endpoints=10.0.0.134:2379 get name
name
mcw

ETCDCTL_API=3 etcdctl --cacert=/etc/etcd/certs/ca.pem --key=/etc/etcd/certs/ca-key.pem --cert=/etc/etcd/certs/ca.pem --write-out=table --endpoints="https://10.xx.101:2379,https://10.xx.101:2379,xx" member list
xx endpoint health
xx member remove a275b4b74688c563

docker flannel网络的更多相关文章

  1. docker flannel网络部署和路由走向分析

    1.flannel介绍 flannel是coreos开发的容器网络解决方案.flannel为每个host分配一个subnet,容器从此subnet中分配ip.这些ip可以在host间路由,容器间无需n ...

  2. docker使用flannel网络

    基础环境我们使用了两台centos 7系统 基础配置为: 两台机器IP为 172.17.3.10 172.17.3.62 hosts文件配置为 172.17.3.10 node1 172.17.3.6 ...

  3. 二进制安装 kubernetes 1.12(二) - 安装docker, 部署Flannel网络

    在 node 节点上安装 docker 参考 https://www.cnblogs.com/klvchen/p/8468855.html Flannel 工作原理: 部署Flannel网络 在 ma ...

  4. docker 集群 flannel网络构建

    先保证集群状态是正常的 集群管理 kubelet 在创建pod 时会先下载一个pause 镜像,这个镜像用于容器基础网络管理非常重要: 每个node 节点都要执行该操作: iptables -P FO ...

  5. DOCKER学习_005:Flannel网络配置

    一 简介 Flannel是一种基于overlay网络的跨主机容器网络解决方案,也就是将TCP数据包封装在另一种网络包里面进行路由转发和通信, Flannel是CoreOS开发,专门用于docker多机 ...

  6. 手把手教你构建 Kubernetes 1.8 + Flannel 网络(一)

    一.环境说明 操作系统:CentOS7 Kubernetes版本:v1.8.4 Docker版本:v17.06-ce Flannel 版本: flannel-v0.9.1 二.Ntp 服务器配置   ...

  7. flannel 网络问题排查

    1. 如果你发现 k8s容器无法访问外网? 重启docker 原因是,docker重启后会重新生成网桥.网络不通的原因是flannel启动后生成的网络覆盖了docker的网络,当你重启docker后, ...

  8. k8s网络之Flannel网络

    k8s网络主题系列: 一.k8s网络之设计与实现 二.k8s网络之Flannel网络 三.k8s网络之Calico网络 简介 Flannel是CoreOS团队针对Kubernetes设计的一个网络规划 ...

  9. 5、Docker容器网络

    使用Linux进行IP层网络管理的指     http://linux-ip.net/html/ # yum install iproute http://linux-ip.net/html/tool ...

  10. [docker]通过阿里云源安装docker && flannel不通问题解决(try this guy out)

    docker清理容器 # 容器停止后就自动删除: docker run --rm centos /bin/echo "One"; # 杀死所有正在运行的容器: docker kil ...

随机推荐

  1. OpenHarmony 状态变量更改通知:@Watch 装饰器

    @Watch 应用于对状态变量的监听.如果开发者需要关注某个状态变量的值是否改变,可以使用 @Watch 为状态变量设置回调函数. 说明: 从 API version 9 开始,该装饰器支持在 Ark ...

  2. C#针对 private Dictionary<String, String> list说明

  3. CMakeLists.txt 编写模板

    新建文件   CMakeLists.txt # 设置cmake的最低版本 cmake_minimum_required(VERSION 2.8) # 指定为C++11 版本 set(CMAKE_CXX ...

  4. http协议重新整理——————历史[一]

    前言 简单整理一些http协议. 正文 20 世纪 60 年代,美国国防部高等研究计划署(ARPA)建立了 ARPA 网,它有四个分布在各地的节点,被认为是如今互联网的"始祖". ...

  5. PyTorch分分钟快速安装

    PyTorch的前身是Torch,其底层和Torch框架一样,但是使用Python重新写了很多内容,不仅更加灵活,支持动态图,而且提供了Python接口. 它是由Torch7团队开发,是一个以Pyth ...

  6. 力扣262(MySQL)-行程和用户(困难)

    题目: 表:Trips 表:Users 取消率 的计算方式如下:(被司机或乘客取消的非禁止用户生成的订单数量) / (非禁止用户生成的订单总数). 写一段 SQL 语句查出 "2013-10 ...

  7. 牛客网-SQL专项训练24

    ①下列选项关于游标的作用叙述正确的是(D) 解析: 游标是一种从包括多条数据记录的结果集中每次提取一条记录以便处理的机制,可以看做是查询结果的记录指针.游标与视图类似,也是基于基表的临时表对象,也能够 ...

  8. 迁移 Nacos 和 ZooKeeper,有了新工具

    简介: 注册中心迁移在行业中主要有两个方案,一个是双注册双订阅模式(类似数据库双写),一个是 Sync 模式(类似于数据库 DTS):MSE 同时支持了两种模式,对于开通 MSE 服务治理客户,MSE ...

  9. 浅谈 Node.js 热更新

    简介: 记得在 15 16 年那会 Node.js 刚起步的时候,我在去前东家的入职面试也被问到了要如何实现 Node.js 服务的热更新. 记得在 15 16 年那会 Node.js 刚起步的时候, ...

  10. 写给大家看的“不负责任” K8s 入门文档

    前言 2019 年下半年,我做了一次转岗,开始接触到 Kubernetes,虽然对 K8s 的认识还非常的不全面,但是非常想分享一下自己的一些收获,希望通过本文能够帮助大家对 K8s 有一个入门的了解 ...