From 4737c170ec362899f840badd22567b7f83217036 Mon Sep 17 00:00:00 2001 From: Logan Rakai Date: Wed, 20 Mar 2019 18:53:37 -0600 Subject: [PATCH] Improve example commands and output markdown (#13315) --- content/en/docs/concepts/configuration/secret.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/content/en/docs/concepts/configuration/secret.md b/content/en/docs/concepts/configuration/secret.md index b6911c5fd9..31b3aca072 100644 --- a/content/en/docs/concepts/configuration/secret.md +++ b/content/en/docs/concepts/configuration/secret.md @@ -623,10 +623,10 @@ start until all the pod's volumes are mounted. Create a secret containing some ssh keys: ```shell -kubectl create secret generic ssh-key-secret --from-file=ssh-privatekey=/path/to/.ssh/id_rsa +kubectl create secret generic ssh-key-secret --from-file=ssh-privatekey=/path/to/.ssh/id_rsa --from-file=ssh-publickey=/path/to/.ssh/id_rsa.pub ``` ``` ---from-file=ssh-publickey=/path/to/.ssh/id_rsa.pub +secret "ssh-key-secret" created ``` {{< caution >}} @@ -676,10 +676,8 @@ credentials. Make the secrets: ```shell -kubectl create secret generic prod-db-secret --from-literal=username=produser ---from-literal=password=Y4nys7f11 +kubectl create secret generic prod-db-secret --from-literal=username=produser --from-literal=password=Y4nys7f11 ``` - ``` secret "prod-db-secret" created ```