From 273ae81ff35a1cd8dbc519d9c8c35359d9d64181 Mon Sep 17 00:00:00 2001 From: Leah Hanson Date: Wed, 7 Nov 2018 18:53:40 -0800 Subject: [PATCH] Correct formatting of note on creating a secret. (#10919) Note should not be code-formatted and command should be inside note block. Signed-off-by: Leah Hanson --- .../distribute-credentials-secure.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/en/docs/tasks/inject-data-application/distribute-credentials-secure.md b/content/en/docs/tasks/inject-data-application/distribute-credentials-secure.md index 3a086bd622..7b17ba4368 100644 --- a/content/en/docs/tasks/inject-data-application/distribute-credentials-secure.md +++ b/content/en/docs/tasks/inject-data-application/distribute-credentials-secure.md @@ -42,13 +42,13 @@ username and password: ```shell kubectl create -f https://k8s.io/docs/tasks/inject-data-application/secret.yaml ``` + {{< note >}} - If you want to skip the Base64 encoding step, you can create a Secret by using the `kubectl create secret` command: + If you want to skip the Base64 encoding step, you can create a Secret by using the `kubectl create secret` command: + ```shell + kubectl create secret generic test-secret --from-literal=username='my-app' --from-literal=password='39528$vdg7Jb' + ``` {{< /note >}} - - ```shell - kubectl create secret generic test-secret --from-literal=username='my-app' --from-literal=password='39528$vdg7Jb' - ``` 1. View information about the Secret: