From 56bd266c5a959f24640c50c0c43081048c89c13e Mon Sep 17 00:00:00 2001 From: Chao Xu Date: Mon, 18 May 2015 21:20:43 -0700 Subject: [PATCH] fix the json files for secret and pod --- docs/secrets.md | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/docs/secrets.md b/docs/secrets.md index 97005a5fe75..3ac8d1c3c2d 100644 --- a/docs/secrets.md +++ b/docs/secrets.md @@ -18,7 +18,7 @@ This is an example of a simple secret, in json format: "kind": "Secret", "metadata" : { "name": "mysecret", - "namespace": "myns", + "namespace": "myns" }, "data": { "username": "dmFsdWUtMQ0K", @@ -34,31 +34,30 @@ The values are arbitrary data, encoded using base64. This is an example of a pod that uses a secret, in json format: ```json { - "kind": "Pod", - "apiVersion": "v1beta3", + "apiVersion": "v1beta3", + "kind": "Pod", "metadata": { - "name": "mypod" + "name": "mypod", + "namespace": "myns" }, "spec": { - "manifest": { - "containers": [{ - "name": "c", - "image": "example/image", - "volumeMounts": [{ - "name": "foo", - "mountPath": "/etc/foo", - "readOnly": true - }] - }], - "volumes": [{ + "containers": [{ + "name": "mypod", + "image": "redis", + "volumeMounts": [{ "name": "foo", - "secret": { - "secretName": "mysecret" - } + "mountPath": "/etc/foo", + "readOnly": true }] - } + }], + "volumes": [{ + "name": "foo", + "secret": { + "secretName": "mysecret" + } + }] } -}] +} ``` ### Restrictions