mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-09-18 10:00:40 +03:00
etcdctl needs more than ETCD_API
This commit is contained in:
@@ -13,11 +13,16 @@ kubectl create secret generic kubernetes-the-hard-way \
|
||||
--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 \
|
||||
--command "ETCDCTL_API=3 etcdctl get /registry/secrets/default/kubernetes-the-hard-way | hexdump -C"
|
||||
gcloud compute ssh controller-0 -C
|
||||
```
|
||||
|
||||
Once you have logged in, run the following command:
|
||||
|
||||
```
|
||||
etcdctl get /registry/secrets/default/kubernetes-the-hard-way | hexdump -C
|
||||
```
|
||||
|
||||
> output
|
||||
|
Reference in New Issue
Block a user