Skip to content

Commit

Permalink
Update the fine-parallel-processing-work-queue.md task file to remove…
Browse files Browse the repository at this point in the history
… $ and also remove text which is not appropiate for end user (kubernetes#12793)
  • Loading branch information
DanyC97 authored and yagonobre committed Mar 14, 2019
1 parent 7c0b2b2 commit fe27350
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions content/en/docs/tasks/job/fine-parallel-processing-work-queue.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,7 @@ For this example, for simplicity, we will start a single instance of Redis.
See the [Redis Example](https://github.com/kubernetes/examples/tree/master/guestbook) for an example
of deploying Redis scalably and redundantly.

If you are working from the website source tree, you can go to the following
directory and start a temporary Pod running Redis and a service so we can find it.

```shell
$ cd content/en/examples/application/job/redis
$ kubectl create -f ./redis-pod.yaml
pod/redis-master created
$ kubectl create -f ./redis-service.yaml
service/redis created
```

If you're not working from the source tree, you could also download the following
files directly:
You could also download the following files directly:

- [`redis-pod.yaml`](/examples/application/job/redis/redis-pod.yaml)
- [`redis-service.yaml`](/examples/application/job/redis/redis-service.yaml)
Expand All @@ -78,7 +66,7 @@ printed.
Start a temporary interactive pod for running the Redis CLI.

```shell
$ kubectl run -i --tty temp --image redis --command "/bin/sh"
kubectl run -i --tty temp --image redis --command "/bin/sh"
Waiting for pod default/redis2-c7h78 to be running, status is Pending, pod ready: false
Hit enter for command prompt
```
Expand Down Expand Up @@ -138,9 +126,7 @@ client library to get work. Here it is:

{{< codenew language="python" file="application/job/redis/worker.py" >}}

If you are working from the source tree, change directory to the
`content/en/examples/application/job/redis/` directory.
Otherwise, download [`worker.py`](/examples/application/job/redis/worker.py),
You could also download [`worker.py`](/examples/application/job/redis/worker.py),
[`rediswq.py`](/examples/application/job/redis/rediswq.py), and
[`Dockerfile`](/examples/application/job/redis/Dockerfile) files, then build
the image:
Expand Down Expand Up @@ -202,7 +188,7 @@ kubectl create -f ./job.yaml
Now wait a bit, then check on the job.

```shell
$ kubectl describe jobs/job-wq-2
kubectl describe jobs/job-wq-2
Name: job-wq-2
Namespace: default
Selector: controller-uid=b1c7e4e3-92e1-11e7-b85e-fa163ee3c11f
Expand All @@ -229,7 +215,7 @@ Events:
33s 33s 1 {job-controller } Normal SuccessfulCreate Created pod: job-wq-2-lglf8


$ kubectl logs pods/job-wq-2-7r7b2
kubectl logs pods/job-wq-2-7r7b2
Worker with sessionID: bbd72d0a-9e5c-4dd6-abf6-416cc267991f
Initial queue state: empty=False
Working on banana
Expand Down

0 comments on commit fe27350

Please sign in to comment.