etcdctl needs more than ETCD_API

This commit is contained in:
Anand Sharma
2018-02-25 11:47:21 -05:00
committed by GitHub
parent 77ab88f6eb
commit 75377e73e0

View File

@@ -13,11 +13,16 @@ kubectl create secret generic kubernetes-the-hard-way \
--from-literal="mykey=mydata" --from-literal="mykey=mydata"
``` ```
Print a hexdump of the `kubernetes-the-hard-way` secret stored in etcd: Print a hexdump of the `kubernetes-the-hard-way` secret stored in etcd from `controller-0`:
``` ```
gcloud compute ssh controller-0 \ gcloud compute ssh controller-0 -C
--command "ETCDCTL_API=3 etcdctl get /registry/secrets/default/kubernetes-the-hard-way | hexdump -C" ```
Once you have logged in, run the following command:
```
etcdctl get /registry/secrets/default/kubernetes-the-hard-way | hexdump -C
``` ```
> output > output