etcdctl needs more than ETCD_API

pull/322/head
Anand Sharma 2018-02-25 11:47:21 -05:00 committed by GitHub
parent 77ab88f6eb
commit 75377e73e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

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