Added .bashrc configuration for etcdctl

Liberally plagiarized the idea from https://github.com/kelseyhightower/kubernetes-the-hard-way/issues/220
pull/322/head
Anand Sharma 2018-02-24 14:45:07 -05:00 committed by GitHub
parent 69121ea689
commit 3e4472b8ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 2 deletions

View File

@ -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