Commit b697dc31 authored by Marcin Wielgus's avatar Marcin Wielgus

Link and kubectl describe in examples/secret

parent 1c0b765d
# Secrets example # Secrets example
Following this example, you will create a secret and a pod that consumes that secret in a volume. 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 ## Step Zero: Prerequisites
...@@ -24,6 +25,18 @@ You can use `kubectl` to see information about the secret: ...@@ -24,6 +25,18 @@ You can use `kubectl` to see information about the secret:
$ kubectl get secrets $ kubectl get secrets
NAME TYPE DATA NAME TYPE DATA
test-secret Opaque 2 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 ## Step Two: Create a pod that consumes a secret
......
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