From e17459adb9ac67cb5037a0855551dfa9aff9bb49 Mon Sep 17 00:00:00 2001 From: maiyang Date: Mon, 23 Apr 2018 18:49:34 +0800 Subject: [PATCH] Update flannel-installation.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 必须指定ca-file,cert-file,key-file,否则会报错: ``` error #0: x509: certificate signed by unknown authority error #1: x509: certificate signed by unknown authority error #2: x509: certificate signed by unknown authority ``` --- practice/flannel-installation.md | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/practice/flannel-installation.md b/practice/flannel-installation.md index 6ae60eb8c..545e6e613 100644 --- a/practice/flannel-installation.md +++ b/practice/flannel-installation.md @@ -94,17 +94,33 @@ $etcdctl --endpoints=${ETCD_ENDPOINTS} \ /kube-centos/network/subnets/172.30.14.0-24 /kube-centos/network/subnets/172.30.38.0-24 /kube-centos/network/subnets/172.30.46.0-24 + $etcdctl --endpoints=${ETCD_ENDPOINTS} \ --ca-file=/etc/kubernetes/ssl/ca.pem \ --cert-file=/etc/kubernetes/ssl/kubernetes.pem \ --key-file=/etc/kubernetes/ssl/kubernetes-key.pem \ get /kube-centos/network/config { "Network": "172.30.0.0/16", "SubnetLen": 24, "Backend": { "Type": "vxlan" } } -$etcdctl get /kube-centos/network/subnets/172.30.14.0-24 + +$etcdctl --endpoints=${ETCD_ENDPOINTS} \ + --ca-file=/etc/kubernetes/ssl/ca.pem \ + --cert-file=/etc/kubernetes/ssl/kubernetes.pem \ + --key-file=/etc/kubernetes/ssl/kubernetes-key.pem \ + get /kube-centos/network/subnets/172.30.14.0-24 {"PublicIP":"172.20.0.114","BackendType":"vxlan","BackendData":{"VtepMAC":"56:27:7d:1c:08:22"}} -$etcdctl get /kube-centos/network/subnets/172.30.38.0-24 + +$etcdctl --endpoints=${ETCD_ENDPOINTS} \ + --ca-file=/etc/kubernetes/ssl/ca.pem \ + --cert-file=/etc/kubernetes/ssl/kubernetes.pem \ + --key-file=/etc/kubernetes/ssl/kubernetes-key.pem \ + get /kube-centos/network/subnets/172.30.38.0-24 {"PublicIP":"172.20.0.115","BackendType":"vxlan","BackendData":{"VtepMAC":"12:82:83:59:cf:b8"}} -$etcdctl get /kube-centos/network/subnets/172.30.46.0-24 + +$etcdctl --endpoints=${ETCD_ENDPOINTS} \ + --ca-file=/etc/kubernetes/ssl/ca.pem \ + --cert-file=/etc/kubernetes/ssl/kubernetes.pem \ + --key-file=/etc/kubernetes/ssl/kubernetes-key.pem \ + get /kube-centos/network/subnets/172.30.46.0-24 {"PublicIP":"172.20.0.113","BackendType":"vxlan","BackendData":{"VtepMAC":"e6:b2:fd:f6:66:96"}} ```