From 4c347ea69d86d9c9c8100896c20ec87ea61d1078 Mon Sep 17 00:00:00 2001 From: Qiming Date: Fri, 24 Nov 2017 19:11:37 +0800 Subject: [PATCH] Update podpreset.md --- docs/tasks/inject-data-application/podpreset.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/tasks/inject-data-application/podpreset.md b/docs/tasks/inject-data-application/podpreset.md index 707a451eff4..43686086906 100644 --- a/docs/tasks/inject-data-application/podpreset.md +++ b/docs/tasks/inject-data-application/podpreset.md @@ -31,7 +31,7 @@ kubectl create -f https://k8s.io/docs/tasks/inject-data-application/podpreset-pr Examine the created PodPreset: ```shell -kubectl get podpreset +$ kubectl get podpreset NAME AGE allow-database 1m ``` @@ -43,13 +43,13 @@ The new PodPreset will act upon any pod that has label `role: frontend`. Create a pod: ```shell -kubectl create -f https://k8s.io/docs/tasks/inject-data-application/podpreset-pod.yaml +$ kubectl create -f https://k8s.io/docs/tasks/inject-data-application/podpreset-pod.yaml ``` List the running Pods: ```shell -kubectl get pods +$ kubectl get pods NAME READY STATUS RESTARTS AGE website 1/1 Running 0 4m ``` @@ -61,7 +61,7 @@ website 1/1 Running 0 4m To see above output, run the following command: ```shell -kubectl get pod website -o yaml +$ kubectl get pod website -o yaml ``` ### Pod Spec with `ConfigMap` Example @@ -145,7 +145,7 @@ when there is a conflict. **If we run `kubectl describe...` we can see the event:** -``` +```shell $ kubectl describe ... .... Events: