Commit d5110b18 authored by Dawn Chen's avatar Dawn Chen

Merge pull request #8488 from caesarxuchao/secrets-doc

fix a json file for pod in docs/secrets.md
parents 456262c4 56bd266c
...@@ -18,7 +18,7 @@ This is an example of a simple secret, in json format: ...@@ -18,7 +18,7 @@ This is an example of a simple secret, in json format:
"kind": "Secret", "kind": "Secret",
"metadata" : { "metadata" : {
"name": "mysecret", "name": "mysecret",
"namespace": "myns", "namespace": "myns"
}, },
"data": { "data": {
"username": "dmFsdWUtMQ0K", "username": "dmFsdWUtMQ0K",
...@@ -34,31 +34,30 @@ The values are arbitrary data, encoded using base64. ...@@ -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: This is an example of a pod that uses a secret, in json format:
```json ```json
{ {
"kind": "Pod", "apiVersion": "v1beta3",
"apiVersion": "v1beta3", "kind": "Pod",
"metadata": { "metadata": {
"name": "mypod" "name": "mypod",
"namespace": "myns"
}, },
"spec": { "spec": {
"manifest": { "containers": [{
"containers": [{ "name": "mypod",
"name": "c", "image": "redis",
"image": "example/image", "volumeMounts": [{
"volumeMounts": [{
"name": "foo",
"mountPath": "/etc/foo",
"readOnly": true
}]
}],
"volumes": [{
"name": "foo", "name": "foo",
"secret": { "mountPath": "/etc/foo",
"secretName": "mysecret" "readOnly": true
}
}] }]
} }],
"volumes": [{
"name": "foo",
"secret": {
"secretName": "mysecret"
}
}]
} }
}] }
``` ```
### Restrictions ### Restrictions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment