etcdctl needs more than ETCD_API
parent
77ab88f6eb
commit
75377e73e0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue