From 2fc698ede2f720a08e35b7d4329de3a62a8c5bbb Mon Sep 17 00:00:00 2001 From: SataQiu Date: Wed, 10 Apr 2019 22:35:39 +0800 Subject: [PATCH] update README.md by cleaning up command prompts --- test/images/pets/redis-installer/README.md | 2 +- test/images/pets/zookeeper-installer/README.md | 2 +- test/images/resource-consumer/README.md | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/images/pets/redis-installer/README.md b/test/images/pets/redis-installer/README.md index e1c3587af3..64ff28d04f 100644 --- a/test/images/pets/redis-installer/README.md +++ b/test/images/pets/redis-installer/README.md @@ -4,7 +4,7 @@ The image in this directory is the init container for contrib/pets/redis but for You can execute the image locally via: ``` -$ docker run -it k8s.gcr.io/redis-install-3.2.0:e2e --cmd --install-into=/opt --work-dir=/work-dir +docker run -it k8s.gcr.io/redis-install-3.2.0:e2e --cmd --install-into=/opt --work-dir=/work-dir ``` To share the installation with other containers mount the appropriate volumes as `--install-into` and `--work-dir`, where `install-into` is the directory to install redis into, and `work-dir` is the directory to install the user/admin supplied on-{start,change} hook scripts. diff --git a/test/images/pets/zookeeper-installer/README.md b/test/images/pets/zookeeper-installer/README.md index 598ca7afe9..5a522ddc36 100644 --- a/test/images/pets/zookeeper-installer/README.md +++ b/test/images/pets/zookeeper-installer/README.md @@ -4,7 +4,7 @@ The image in this directory is the init container for contrib/pets/zookeeper but You can execute the image locally via: ``` -$ docker run -it k8s.gcr.io/zookeeper-install-3.5.0-alpha:e2e --cmd --install-into=/opt --work-dir=/work-dir +docker run -it k8s.gcr.io/zookeeper-install-3.5.0-alpha:e2e --cmd --install-into=/opt --work-dir=/work-dir ``` To share the installation with other containers mount the appropriate volumes as `--install-into` and `--work-dir`, where `install-into` is the directory to install zookeeper into, and `work-dir` is the directory to install the user/admin supplied on-{start,change} hook scripts. diff --git a/test/images/resource-consumer/README.md b/test/images/resource-consumer/README.md index 8773766eab..e6a168c716 100644 --- a/test/images/resource-consumer/README.md +++ b/test/images/resource-consumer/README.md @@ -48,14 +48,14 @@ Custom metrics in Prometheus format are exposed on "/metrics" endpoint. ### CURL example ```console -$ kubectl run resource-consumer --image=gcr.io/kubernetes-e2e-test-images/resource-consumer:1.4 --expose --service-overrides='{ "spec": { "type": "LoadBalancer" } }' --port 8080 --requests='cpu=500m,memory=256Mi' -$ kubectl get services resource-consumer +kubectl run resource-consumer --image=gcr.io/kubernetes-e2e-test-images/resource-consumer:1.4 --expose --service-overrides='{ "spec": { "type": "LoadBalancer" } }' --port 8080 --requests='cpu=500m,memory=256Mi' +kubectl get services resource-consumer ``` There are two IPs. The first one is internal, while the second one is the external load-balanced IP. Both serve port 8080. (Use second one) ```console -$ curl --data "millicores=300&durationSec=600" http://:8080/ConsumeCPU +curl --data "millicores=300&durationSec=600" http://:8080/ConsumeCPU ``` 300 millicores will be consumed for 600 seconds.