etcd web管理

https://nikfoundas.github.io/etcd-viewer/

# git clone https://github.com/nikfoundas/etcd-viewer.git
# mvn clean install
# mvn jetty:run
# docker build -t some-repo/etcd-viewer .
# docker run -d -p 8080:8080 nikfoundas/etcd-viewer

  


node1

#!/bin/bash
etcd --name infra0 --initial-advertise-peer-urls http://192.168.5.152:2380 \
--listen-peer-urls http://192.168.5.152:2380 \
--listen-client-urls http://192.168.5.152:2379,http://127.0.0.1:2379 \
--advertise-client-urls http://192.168.5.152:2379 \
--initial-cluster-token etcd-cluster- \
--initial-cluster infra0=http://192.168.5.152:2380,infra1=http://192.168.5.151:2380,infra2=http://192.168.5.150:2380 \
--initial-cluster-state new &

node2

#!/bin/bash
etcd --name infra1 --initial-advertise-peer-urls http://192.168.5.151:2380 \
--listen-peer-urls http://192.168.5.151:2380 \
--listen-client-urls http://192.168.5.151:2379,http://127.0.0.1:2379 \
--advertise-client-urls http://192.168.5.151:2379 \
--initial-cluster-token etcd-cluster- \
--initial-cluster infra0=http://192.168.5.152:2380,infra1=http://192.168.5.151:2380,infra2=http://192.168.5.150:2380 \
--initial-cluster-state new &

node3

#!/bin/bash
etcd --name infra2 --initial-advertise-peer-urls http://192.168.5.150:2380 \
--listen-peer-urls http://192.168.5.150:2380 \
--listen-client-urls http://192.168.5.150:2379,http://127.0.0.1:2379 \
--advertise-client-urls http://192.168.5.150:2379 \
--initial-cluster-token etcd-cluster- \
--initial-cluster infra0=http://192.168.5.152:2380,infra1=http://192.168.5.151:2380,infra2=http://192.168.5.150:2380 \
--initial-cluster-state new &

etcdctl命令

etcdctl member list  \\集群节点
etcdctl cluster-health \\健康检查

  

etcd进程关闭

#!/bin/bash
NAME=$
echo $NAME
ID=`ps -ef | grep "$NAME" | grep -v "grep" | awk '{print $2}'`
echo $ID
echo "---------------"
for id in $ID
do
kill - $id
echo "killed $id"
done
echo "---------------"

etcd 集群部署的更多相关文章

  1. 003.etcd集群部署-静态发现

    一 etcd集群概述 1.1 概述 静态启动etcd集群要求每个成员都知道集群中的另一个成员.Etcd运行在集群的每个coreos节点上,可以保证coreos集群的稳定,可靠的运行.当集群网络出现动荡 ...

  2. etcd集群部署与遇到的坑(转)

    原文 https://www.cnblogs.com/breg/p/5728237.html etcd集群部署与遇到的坑 在k8s集群中使用了etcd作为数据中心,在实际操作中遇到了一些坑.今天记录一 ...

  3. 005.基于docker部署etcd集群部署

    一 环境准备 ntp配置:略 #建议配置ntp服务,保证时间一致性 etcd版本:v3.3.9 防火墙及SELinux:关闭防火墙和SELinux 名称 地址 主机名 备注 etcd1 172.24. ...

  4. Kubernetes(k8s)集群部署(k8s企业级Docker容器集群管理)系列之自签TLS证书及Etcd集群部署(二)

    0.前言 整体架构目录:ASP.NET Core分布式项目实战-目录 k8s架构目录:Kubernetes(k8s)集群部署(k8s企业级Docker容器集群管理)系列目录 一.服务器设置 1.把每一 ...

  5. 004.etcd集群部署-动态发现

    一 etcd发现简介 1.1 需求背景 在实际环境中,集群成员的ip可能不会提前知道.如使用dhcp自动获取的情况,在这些情况下,使用自动发现来引导etcdetcd集群,而不是指定静态配置,这个过程被 ...

  6. Kubernetes集群部署之三ETCD集群部署

    kuberntes 系统使用 etcd 存储所有数据,本文档介绍部署一个三节点高可用 etcd 集群的步骤,这三个节点复用 kubernetes 集群机器k8s-master.k8s-node-1.k ...

  7. K8s集群部署(一)------ETCD集群部署

    环境说明 三台主机: k8s-master  10.0.3.225 k8s-node1    10.0.3.226 k8s-node2    10.0.3.227 配置主机名解析 [root@k8s- ...

  8. etcd集群部署

    etcd是用于共享配置和服务发现的分布式KV存储系统,随着CoreOS和Kubernetes等项目在开源社区日益火热,它们都用到了etcd组件作为一个高可用.强一致性的服务发现存储仓库.操作系统版本: ...

  9. etcd集群部署与遇到的坑

    在k8s集群中使用了etcd作为数据中心,在实际操作中遇到了一些坑.今天记录一下,为了以后更好操作. ETCD参数说明 —data-dir 指定节点的数据存储目录,这些数据包括节点ID,集群ID,集群 ...

随机推荐

  1. 【Spring Boot&& Spring Cloud系列】单点登录SSO之OAuth2官方开发文档翻译

    Introduction:介绍 This is the user guide for the support for OAuth 2.0. For OAuth 1.0, everything is d ...

  2. 【HIbernate异常】could not initialize proxy - no Session (已解决)

    异常信息: org.hibernate.LazyInitializationException: could not initialize proxy - no Session 解决方法: 用 get ...

  3. testmath

    $\Huge ans = \frac{ \sum\limits_{i=1}^{m}{ (x_i - \bar{x})^2 } }{m} \cdot m^2 \\$

  4. (转载)解决AndroidStudio导入项目在 Building gradle project info 一直卡住

    源地址http://blog.csdn.net/yyh352091626/article/details/51490976 Android Studio导入项目的时候,一直卡在Building gra ...

  5. win7下桌面右键一直转圈圈的解决方法

    今天公司同事的电脑,在进入win7系统后,桌面右键一直转圈圈,找我解决这个问题. 经过我观察,他电脑只是在桌面上右键有此现象,在其他地方并无此现象. 因此可以得出结论,此现象很可能与桌面右键有关,经上 ...

  6. IOS控制系统手势返回

    self.navigationController.interactivePopGestureRecognizer.enabled = YES; //手势返回的代理,如果自定义了leftButtonI ...

  7. linux下模拟CPU占用100%小程序

    在做一个测试时,需要模拟服务器CPU占用满的情况,在查阅相关资料后,发现网上程序不太好用, 原文在这:http://www.2cto.com/os/201304/202068.html 优化后如下: ...

  8. Java.Util.List(List接口)

    equals方法 equals(Object o) 方法用来比较指定的对象与列表是否相等,当且仅当指定的对象也是一个列表.两个列表有相同的大小,并且两个列表中的所有相应的元素对相等时才返回 true. ...

  9. css 多行文字,超出部分隐藏,...代替

    css虽然简单,但其实也是记得常用的那些,不常用的还是要搜一搜再写

  10. 慕课网,vue高仿饿了吗ASP源码视频笔记

    1.源码笔记 我的源码+笔记(很重要):http://pan.baidu.com/s/1geI4i2Z 感谢麦子学院项目相关视频 2.参考资料 Vue.js官网(https://vuejs.org.c ...