From 3e4472b8abc5a8e53e00288c21cfaa2cb491921c Mon Sep 17 00:00:00 2001 From: Anand Sharma Date: Sat, 24 Feb 2018 14:45:07 -0500 Subject: [PATCH] Added .bashrc configuration for etcdctl Liberally plagiarized the idea from https://github.com/kelseyhightower/kubernetes-the-hard-way/issues/220 --- docs/07-bootstrapping-etcd.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/07-bootstrapping-etcd.md b/docs/07-bootstrapping-etcd.md index 93ad388..8dcddd3 100644 --- a/docs/07-bootstrapping-etcd.md +++ b/docs/07-bootstrapping-etcd.md @@ -111,10 +111,20 @@ sudo systemctl start etcd ## Verification -List the etcd cluster members: +In order to list the members of the etcd cluster from any of the controller hosts, add the following to the logged in user's `.bashrc` file: ``` -ETCDCTL_API=3 etcdctl member list +export ETCDCTL_API=3 +export ETCDCTL_ENDPOINTS="https://127.0.0.1:2379" +export ETCDCTL_CACERT="/etc/etcd/ca.pem" +export ETCDCTL_CERT="/etc/etcd/kubernetes.pem" +export ETCDCTL_KEY="/etc/etcd/kubernetes-key.pem" +``` + +You might have to change file permissions (or ownership) of the PEM files to make sure that there are no permission issues while running the following command: + +``` +etcdctl member list ``` > output