webserver Etcd Cluster / CoreOS etcd / macOS etcd
s
https://coreos.com/etcd/
https://coreos.com/etcd/docs/latest/
ETCD 单机启动
https://kaixiansheng.iteye.com/blog/2401500
etcd就两个可执行文件(截至到3..15前)。
下载地址:https://github.com/coreos/etcd/releases 注:etcd可以集群安装,在这里只想做一个单机测试,所以只是启动一个节点就可以。 . 解压,并将文件放入系统路径中:
tar zxvf etcd-v3.0.15-linux-amd64.tar.gz
cp etcd /usr/bin/
cp etcdctl /usr/bin/ . 创建一个服务描述文件,放入systemd的服务目录下
cat /usr/lib/systemd/system/etcd.service
[Unit]
Description=Etcd Server
After=network.target [Service]
Type=simple
WorkingDirectory=/var/lib/etcd/
EnvironmentFile=-/etc/etcd/etcd.conf
ExecStart=/usr/bin/etcd [Install]
WantedBy=multi-user.target . etcd的配置
cat /etc/etcd/etcd.conf
# [member]
ETCD_NAME=default
ETCD_DATA_DIR="/var/lib/etcd/default.etcd"
ETCD_LISTEN_CLIENT_URLS="http://localhost:2379"
ETCD_ADVERTISE_CLIENT_URLS="http://localhost:2379" . 给etcd创建一个工作目录:
[root@localhost etcd]# mkdir /var/lib/etcd . 启动etcd,并测试
[root@localhost etcd]# systemctl daemon-reload
[root@localhost etcd]# systemctl start etcd
[root@localhost etcd]# systemctl enable etcd
Created symlink from/etc/systemd/system/multi-user.target.wants/etcd.service to/usr/lib/systemd/system/etcd.service.
[root@localhost etcd]# systemctl status etcd [root@localhost etcd]# etcdctl cluster-health
member 8e9e05c52164694d is healthy: got healthyresult from http://localhost:2379
cluster is healthy
macOS mojave etcd
003deMac-mini:~ macuser$ brew install etcd
003deMac-mini:~ macuser$ brew install etcd
Updating Homebrew... ==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
ios-sim numpy ==> Downloading https://homebrew.bintray.com/bottles/etcd-3.3.12.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/2d/2d43653b282635230c278353d20371604daa844bdf23ccd57df5d245efa197fc?__gda__=exp=1555924161~hmac=888813e351080ced892659ca135
######################################################################## 100.0%
==> Pouring etcd-3.3.12.mojave.bottle.tar.gz
==> Caveats
To have launchd start etcd now and restart at login:
brew services start etcd
Or, if you don't want/need a background service you can just run:
etcd
==> Summary
/usr/local/Cellar/etcd/3.3.12: 9 files, 51.6MB
003deMac-mini:~ macuser$ etcd --version
etcd Version: 3.3.12
Git SHA: GitNotFound
Go Version: go1.11.5
Go OS/Arch: darwin/amd64
https://github.com/etcd-io/etcd/releases/tag/v3.2.10
wget https://github.com/etcd-io/etcd/releases/download/v3.3.10/etcd-v3.3.10-linux-amd64.tar.gz
Etcd是一个开源的、分布式的键值对数据存储系统,提供共享配置、服务的注册和发现。etcd与zookeeper相比算是轻量级系统,
两者的一致性协议也一样。在kubernetes中使用etcd作为服务注册的工具,类似于秘钥信息和api信息都需要从etcd中读取。
通过命令etcdctl get / --prefix –keys-only来获取etcd中的所有的key。
找到key名后,通过etcdctl get+key名,可以拿到具体的值。
针对这边列出的所有key名,做了一些分类整理。有以下的几类key名:
Apiservices:APIService接口配置信息。
Customresourcedefinitions:创建自定义的资源对象信息(资源对象是指例如pod,或者service)。
Clusterrolebindings:RBAC角色绑定信息,和rolebinding的区别在于该属性是全局属性。
Clusterroles:RBAC角色信息,包括角色权限,操作权限等。
Events:kubelet记录pod的事件。
Jobs:和pod类似,是一些运行的单位,和pod的区别是job是一次性任务。
Minions:从机信息,node节点的宿主机。
Namespaces:命名空间的信息。
Pods:一个运行镜像的载体,由controller创建和管理。
Ranges:记录service调用的IP地址和端口。
Replicasets:用于副本控制,由deployment直接调用。
Rolebindings:角色信息,和Clusterrolebindings不同在于,该角色信息只在命名空间中生效。
Roles:角色信息,只在一个命名空间中生效。
Secrets:各个通信间的秘钥信息。
Serviceaccounts:提供给pod访问api的身份认证
Services:提供给外部的服务信息。
etcd集群搭建
https://www.cnblogs.com/jsonhc/p/7884668.html
etcd集群部署与遇到的坑
https://www.cnblogs.com/breg/p/5728237.html
end
webserver Etcd Cluster / CoreOS etcd / macOS etcd的更多相关文章
- Running an etcd cluster on localhost
Purpose Run a cluster on localhost while investigating etcd Use a static cluster (So we have no exte ...
- Error: client: etcd cluster is unavailable or misconfigured; error #0: dial tcp 127.0.0.1:4001: getsockopt: connection refused
配置docker网络flannel时,配置etcd的key的时候出现以下错误 Error: client: etcd cluster is unavailable or misconfigured; ...
- rancher v2.2.4创建kubernetes集群出现[etcd] Failed to bring up Etcd Plane: [etcd] Etcd Cluster is not healthy
主机:rancher(172.16.2.17),master(172.16.2.95),node01(172.16.2.234),node02(172.16.2.67) 问题:开始是用的rancher ...
- 什么是Etcd,如何运维Etcd ?
介绍 ETCD 是一个分布式.可靠的 key-value 存储的分布式系统,用于存储分布式系统中的关键数据:当然,它不仅仅用于存储,还提供配置共享及服务发现:基于Go语言实现. ETCD的特点 简单: ...
- etcd学习(3)-grpc使用etcd做服务发现
grpc通过etcd实现服务发现 前言 服务注册 服务发现 负载均衡 集中式LB(Proxy Model) 进程内LB(Balancing-aware Client) 独立 LB 进程(Externa ...
- auth.go
), fmt.Errorf("invalid permission type: %s", s) } type authenticator struct { conn *gr ...
- Docker Manager for Kubernetes
一.Kubernetes介绍 Kubernets是Google开源的容器集群系统,是基于Docker构建一个容器的调度服务,提供资源调度,均衡容灾,服务注册,动态伸缩等功能套件: Kubernets提 ...
- centos7的Kubernetes部署记录
一.使用vm创建了三个centos系统,基本细节如下: 1.1 修改三台机器对应的主机名: [root@localhost ~] hostnamectl --static set-hostname k ...
- Kube-DNS搭建(1.4版本)
目录贴:Kubernetes学习系列 1.介绍 之前介绍过DNS的搭建(基于Kubernetes集群部署skyDNS服务),但那个版本的DNS是随着Kubernetes1.2发布出来的,有点原始.本文 ...
随机推荐
- Docker之常用命令(二)
这篇博客就不扯皮了,简单粗暴地贴上自己整理的一份Docker常用命令. docker search ** // 查找镜像 docker pull nginx // 载入镜像 # -a 拉取所有tagg ...
- 力扣算法题—079单词搜索【DFS】
给定一个二维网格和一个单词,找出该单词是否存在于网格中. 单词必须按照字母顺序,通过相邻的单元格内的字母构成,其中“相邻”单元格是那些水平相邻或垂直相邻的单元格.同一个单元格内的字母不允许被重复使用. ...
- Linux Collection:软件配置
PAS Debian 9安装最新版Firefox( Firefox 58+/Quantum) Debian 9(Strech)的仓库包含的是firefox-esr(52)版本:需要安装最新版,有如下两 ...
- 码农人生——从未学过Android如何开发Android App 案例讲解-第002期案例
标题有点晃眼,本次分享是002期博文的实践故事,不会有任何代码.也不会教别人android 如何开发,类似博文已经有大批大批,而且还会有陆陆续续的人写,我写的文章,主要是经验之谈,希望总结出的一些方法 ...
- 戏说春秋_i春秋 writeup
<戏说春秋>第一关 图穷匕见 题目: 解:用winhex打开,拉到最后可发现一段编码 放到解密网站上解码. <戏说春秋>第二关 纸上谈兵 解:文中没有明确指出问题,也没有给出线 ...
- android的listview以及画线--to thi tha
https://www.cnblogs.com/896240130Master/p/6135165.html 这个的 https://www.jianshu.com/p/5522470760c1
- BZOJ 3684 大朋友和多叉树
BZOJ 3684 大朋友和多叉树 Description 我们的大朋友很喜欢计算机科学,而且尤其喜欢多叉树.对于一棵带有正整数点权的有根多叉树,如果它满足这样的性质,我们的大朋友就会将其称作神犇的: ...
- 【Consul】CONSUL调研
[Consul]CONSUL调研 2016年08月18日 18:31:53 YoungerChina 阅读数:1962更多 所属专栏: Consul修炼 版权声明:原创不易,转载请注明出处! ht ...
- iOS开发基础-Plist实现嵌套模型
一.plist文件结构图 说明: title 属性表示该 item 下汽车名字的首字母, cars 属性存放首字母为 title 的汽车, icon 属性存放图片的名称, name 属性存放汽车的名字 ...
- Masonry 与 frame 混用导致的问题
https://www.jianshu.com/p/357fab4b84e7 Masonry 与 frame 混用可能出现子控件大小跟预期不一致的情况,具体是什么样呢? 例如,自定义一个 UIView ...