Fix console output formatting for simple YAML user guide

This commit is contained in:
Satnam Singh 2015-07-18 23:14:00 +01:00
parent 715f2c488f
commit af169709ef

View File

@ -40,9 +40,9 @@ can be code reviewed, producing a more robust, reliable and archival system.
### Running a container from a pod configuration file ### Running a container from a pod configuration file
```bash ```console
cd kubernetes $ cd kubernetes
kubectl create -f ./pod.yaml $ kubectl create -f ./pod.yaml
``` ```
Where pod.yaml contains something like: Where pod.yaml contains something like:
@ -64,14 +64,14 @@ spec:
You can see your cluster's pods: You can see your cluster's pods:
```bash ```console
kubectl get pods $ kubectl get pods
``` ```
and delete the pod you just created: and delete the pod you just created:
```bash ```console
kubectl delete pods nginx $ kubectl delete pods nginx
``` ```
### Running a replicated set of containers from a configuration file ### Running a replicated set of containers from a configuration file
@ -80,9 +80,9 @@ To run replicated containers, you need a [Replication Controller](replication-co
A replication controller is responsible for ensuring that a specific number of pods exist in the A replication controller is responsible for ensuring that a specific number of pods exist in the
cluster. cluster.
```bash ```console
cd kubernetes $ cd kubernetes
kubectl create -f ./replication.yaml $ kubectl create -f ./replication.yaml
``` ```
Where ```replication.yaml``` contains: Where ```replication.yaml``` contains:
@ -111,8 +111,8 @@ spec:
To delete the replication controller (and the pods it created): To delete the replication controller (and the pods it created):
```bash ```console
kubectl delete rc nginx $ kubectl delete rc nginx
``` ```