mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #8488 from caesarxuchao/secrets-doc
fix a json file for pod in docs/secrets.md
This commit is contained in:
commit
d5110b1805
@ -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,16 +34,16 @@ 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": "c",
|
"name": "mypod",
|
||||||
"image": "example/image",
|
"image": "redis",
|
||||||
"volumeMounts": [{
|
"volumeMounts": [{
|
||||||
"name": "foo",
|
"name": "foo",
|
||||||
"mountPath": "/etc/foo",
|
"mountPath": "/etc/foo",
|
||||||
@ -58,7 +58,6 @@ This is an example of a pod that uses a secret, in json format:
|
|||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}]
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Restrictions
|
### Restrictions
|
||||||
|
Loading…
Reference in New Issue
Block a user