Categorygithub.com/rayylee/etcdadmin
repositorypackage
0.0.0-20200813014350-118b9d8eed37
Repository: https://github.com/rayylee/etcdadmin.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

etcdadmin

etcdadmin contains etcdadmind and etcdadminctl. It makes it easy to create a new etcd cluster, add a member to, or remove a member from an existing etcd cluster.

  • etcdadmind is a service to manage etcd cluster.
  • etcdadminctl is a tool for operating etcdadmind, such as add, remove or list members.

Depends

  • etcd.service

Here is an example contrib/etcd.service

Getting started

How to install

# go get github.com/rayylee/etcdadmin/etcdadmin
# go get github.com/rayylee/etcdadmin/etcdadminctl

How to run

# etcdadmin install
Install Etcd admin service:                 [  OK  ]

# etcdadmin start
Starting Etcd admin service:                [  OK  ]

  • Add member
    # etcdadminctl member add node1 --peer-ip=169.254.155.111
    # etcdadminctl member add node2 --peer-ip=169.254.155.112
    
  • List memebers
    # etcdadminctl member list
    
  • Remove member
    # etcdadminctl remove node1