From d52544c181cab4a67e37bd9bce817dc5cb02a6bd Mon Sep 17 00:00:00 2001 From: makocchi Date: Tue, 21 Aug 2018 05:18:33 +0900 Subject: [PATCH] fix code snippets and tweak a heading (#9909) --- .../tasks/tls/managing-tls-in-a-cluster.md | 28 +++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/content/en/docs/tasks/tls/managing-tls-in-a-cluster.md b/content/en/docs/tasks/tls/managing-tls-in-a-cluster.md index 95249edd0a..1c3d98e989 100644 --- a/content/en/docs/tasks/tls/managing-tls-in-a-cluster.md +++ b/content/en/docs/tasks/tls/managing-tls-in-a-cluster.md @@ -64,8 +64,8 @@ The cfssl tools used in this example can be downloaded at Generate a private key and certificate signing request (or CSR) by running the following command: -```console -$ cat < Annotations: @@ -160,8 +163,11 @@ information on what this involves is covered below. Once the CSR is signed and approved you should see the following: -```console -$ kubectl get csr +```shell +kubectl get csr +``` + +```none NAME AGE REQUESTOR CONDITION my-svc.my-namespace 10m yourname@example.com Approved,Issued ``` @@ -169,8 +175,8 @@ my-svc.my-namespace 10m yourname@example.com Approved,Issued You can download the issued certificate and save it to a `server.crt` file by running the following: -```console -$ kubectl get csr my-svc.my-namespace -o jsonpath='{.status.certificate}' \ +```shell +kubectl get csr my-svc.my-namespace -o jsonpath='{.status.certificate}' \ | base64 --decode > server.crt ``` @@ -200,7 +206,7 @@ to verify that the CSR satisfies two requirements: If and only if these two requirements are met, the approver should approve the CSR and otherwise should deny the CSR. -## A Word of **Warning** on the Approval Permission +## A Word of Warning on the Approval Permission The ability to approve CSRs decides who trusts who within the cluster. This includes who the Kubernetes API trusts. The ability to approve CSRs should