前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Etcd 集群配置证书通信

Etcd 集群配置证书通信

作者头像
用户5760343
发布2019-10-29 14:47:15
6460
发布2019-10-29 14:47:15
举报
文章被收录于专栏:sktjsktj

1、使用自制证书 etcd --name infra0 --initial-advertise-peer-urls http://10.0.1.10:2380 --listen-peer-urls https://10.0.1.10:2380 --listen-client-urls https://10.0.1.10:2379,https://127.0.0.1:2379 --advertise-client-urls https://10.0.1.10:2379 --initial-cluster-token etcd-cluster-1 --initial-cluster infra0=https://10.0.1.10:2380,infra1=https://10.0.1.11:2380,infra2=https://10.0.1.12:2380 --initial-cluster-state new --client-cert-auth --trusted-ca-file=/path/to/ca-client.crt --cert-file=/path/to/infra0-client.crt --key-file=/path/to/infra0-client.key --peer-client-cert-auth --peer-trusted-ca-file=ca-peer.crt --peer-cert-file=/path/to/infra0-peer.crt --peer-key-file=/path/to/infra0-peer.key

$ etcd --name infra1 --initial-advertise-peer-urls https://10.0.1.11:2380 --listen-peer-urls https://10.0.1.11:2380 --listen-client-urls https://10.0.1.11:2379,https://127.0.0.1:2379 --advertise-client-urls https://10.0.1.11:2379 --initial-cluster-token etcd-cluster-1 --initial-cluster infra0=https://10.0.1.10:2380,infra1=https://10.0.1.11:2380,infra2=https://10.0.1.12:2380 --initial-cluster-state new --client-cert-auth --trusted-ca-file=/path/to/ca-client.crt --cert-file=/path/to/infra1-client.crt --key-file=/path/to/infra1-client.key --peer-client-cert-auth --peer-trusted-ca-file=ca-peer.crt --peer-cert-file=/path/to/infra1-peer.crt --peer-key-file=/path/to/infra1-peer.key

$ etcd --name infra2 --initial-advertise-peer-urls https://10.0.1.12:2380 --listen-peer-urls https://10.0.1.12:2380 --listen-client-urls https://10.0.1.12:2379,https://127.0.0.1:2379 --advertise-client-urls https://10.0.1.12:2379 --initial-cluster-token etcd-cluster-1 --initial-cluster infra0=https://10.0.1.10:2380,infra1=https://10.0.1.11:2380,infra2=https://10.0.1.12:2380 --initial-cluster-state new --client-cert-auth --trusted-ca-file=/path/to/ca-client.crt --cert-file=/path/to/infra2-client.crt --key-file=/path/to/infra2-client.key --peer-client-cert-auth --peer-trusted-ca-file=ca-peer.crt --peer-cert-file=/path/to/infra2-peer.crt --peer-key-file=/path/to/infra2-peer.key

2、使用自动证书 $ etcd --name infra0 --initial-advertise-peer-urls https://10.0.1.10:2380 --listen-peer-urls https://10.0.1.10:2380 --listen-client-urls https://10.0.1.10:2379,https://127.0.0.1:2379 --advertise-client-urls https://10.0.1.10:2379 --initial-cluster-token etcd-cluster-1 --initial-cluster infra0=https://10.0.1.10:2380,infra1=https://10.0.1.11:2380,infra2=https://10.0.1.12:2380 --initial-cluster-state new --auto-tls --peer-auto-tls

$ etcd --name infra1 --initial-advertise-peer-urls https://10.0.1.11:2380 --listen-peer-urls https://10.0.1.11:2380 --listen-client-urls https://10.0.1.11:2379,https://127.0.0.1:2379 --advertise-client-urls https://10.0.1.11:2379 --initial-cluster-token etcd-cluster-1 --initial-cluster infra0=https://10.0.1.10:2380,infra1=https://10.0.1.11:2380,infra2=https://10.0.1.12:2380 --initial-cluster-state new --auto-tls --peer-auto-tls

$ etcd --name infra2 --initial-advertise-peer-urls https://10.0.1.12:2380 --listen-peer-urls https://10.0.1.12:2380 --listen-client-urls https://10.0.1.12:2379,https://127.0.0.1:2379 --advertise-client-urls https://10.0.1.12:2379 --initial-cluster-token etcd-cluster-1 --initial-cluster infra0=https://10.0.1.10:2380,infra1=https://10.0.1.11:2380,infra2=https://10.0.1.12:2380 --initial-cluster-state new --auto-tls --peer-auto-tls

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019.10.25 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
SSL 证书
腾讯云 SSL 证书(SSL Certificates)为您提供 SSL 证书的申请、管理、部署等服务,为您提供一站式 HTTPS 解决方案。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档