Fix wrong format (#8740)

* style

* define-command-argument-container format
This commit is contained in:
chenhonggc
2018-05-25 14:58:34 +08:00
committed by k8s-ci-robot
parent 4cab117f42
commit 673b729451
2 changed files with 7 additions and 7 deletions
@@ -21,7 +21,7 @@ Kubernetes cluster.
1. List the nodes in your cluster: 1. List the nodes in your cluster:
kubectl get nodes kubectl get nodes
The output is similar to this: The output is similar to this:
@@ -32,7 +32,7 @@ Kubernetes cluster.
1. Chose one of your nodes, and add a label to it: 1. Chose one of your nodes, and add a label to it:
kubectl label nodes <your-node-name> disktype=ssd kubectl label nodes <your-node-name> disktype=ssd
where `<your-node-name>` is the name of your chosen node. where `<your-node-name>` is the name of your chosen node.
@@ -62,11 +62,11 @@ a `disktype=ssd` label.
1. Use the configuration file to create a pod that will get scheduled on your 1. Use the configuration file to create a pod that will get scheduled on your
chosen node: chosen node:
kubectl create -f https://k8s.io/docs/tasks/configure-pod-container/pod.yaml kubectl create -f https://k8s.io/docs/tasks/configure-pod-container/pod.yaml
1. Verify that the pod is running on your chosen node: 1. Verify that the pod is running on your chosen node:
kubectl get pods --output=wide kubectl get pods --output=wide
The output is similar to this: The output is similar to this:
@@ -41,11 +41,11 @@ file for the Pod defines a command and two arguments:
1. Create a Pod based on the YAML configuration file: 1. Create a Pod based on the YAML configuration file:
kubectl create -f https://k8s.io/docs/tasks/inject-data-application/commands.yaml kubectl create -f https://k8s.io/docs/tasks/inject-data-application/commands.yaml
1. List the running Pods: 1. List the running Pods:
kubectl get pods kubectl get pods
The output shows that the container that ran in the command-demo Pod has The output shows that the container that ran in the command-demo Pod has
completed. completed.
@@ -53,7 +53,7 @@ file for the Pod defines a command and two arguments:
1. To see the output of the command that ran in the container, view the logs 1. To see the output of the command that ran in the container, view the logs
from the Pod: from the Pod:
kubectl logs command-demo kubectl logs command-demo
The output shows the values of the HOSTNAME and KUBERNETES_PORT environment The output shows the values of the HOSTNAME and KUBERNETES_PORT environment
variables: variables: