Merge pull request #10450 from mwielgus/secret

Link to docs/secret.md and kubectl describe in examples/secrets
This commit is contained in:
Alex Robinson 2015-06-29 13:47:43 -07:00
commit 4e2474669c

View File

@ -1,6 +1,7 @@
# Secrets example
Following this example, you will create a secret and a pod that consumes that secret in a volume.
You can learn more about secrets [Here](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/secrets.md).
## Step Zero: Prerequisites
@ -24,6 +25,18 @@ You can use `kubectl` to see information about the secret:
$ kubectl get secrets
NAME TYPE DATA
test-secret Opaque 2
$ kubectl describe secret test-secret
Name: test-secret
Labels: <none>
Annotations: <none>
Type: Opaque
Data
====
data-1: 9 bytes
data-2: 11 bytes
```
## Step Two: Create a pod that consumes a secret