Skip to content

Instantly share code, notes, and snippets.

@gavinzhou
Created October 15, 2018 00:13
Show Gist options
  • Save gavinzhou/1f29262e2221c7b006e2afa4742f5253 to your computer and use it in GitHub Desktop.
Save gavinzhou/1f29262e2221c7b006e2afa4742f5253 to your computer and use it in GitHub Desktop.
$ curl -s localhost:2379/v2/keys/registry/example.com/databases/default | jq .
{
"action": "get",
"node": {
"key": "/registry/example.com/databases/default",
"dir": true,
"nodes": [
{
"key": "/registry/example.com/databases/default/wordpress",
"value": "{\"apiVersion\":\"example.com/v1\",\"kind\":\"Database\",\"metadata\":{\"clusterName\":\"\",\"creationTimestamp\":\"2017-08-09T14:53:40Z\",\"deletionGracePeriodSeconds\":null,\"deletionTimestamp\":null,\"name\":\"wordpress\",\"namespace\":\"default\",\"selfLink\":\"\",\"uid\":\"8837f788-7d12-11e7-9d28-080027390640\"},\"spec\":{\"encoding\":\"unicode\",\"password\":\"secret\",\"user\":\"wp\"}}\n",
"modifiedIndex": 670,
"createdIndex": 670
}
],
"modifiedIndex": 670,
"createdIndex": 670
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment