mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-09-18 18:10:41 +03:00
Added .bashrc configuration for etcdctl
Liberally plagiarized the idea from https://github.com/kelseyhightower/kubernetes-the-hard-way/issues/220
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user