summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Robinson <arob@google.com>2015-01-09 22:38:14 +0000
committerAlex Robinson <arob@google.com>2015-01-09 22:46:36 +0000
commit3c3d2468b90ea9050b40a4ae97eae7b8d8c16c22 (patch)
treee5bc5aab86c33f164fba33aadabc07289bca2fa9
parentd45be03704bdc6a74ca4a43edbadace9cfd0c586 (diff)
Update the doc on how to test for flakiness to actually work and to use kubectl.
-rw-r--r--flaky-tests.md10
1 files changed, 6 insertions, 4 deletions
diff --git a/flaky-tests.md b/flaky-tests.md
index d2cc8fad..ccd32afb 100644
--- a/flaky-tests.md
+++ b/flaky-tests.md
@@ -12,6 +12,8 @@ There is a testing image ```brendanburns/flake``` up on the docker hub. We will
Create a replication controller with the following config:
```yaml
id: flakeController
+kind: ReplicationController
+apiVersion: v1beta1
desiredState:
replicas: 24
replicaSelector:
@@ -37,14 +39,14 @@ labels:
name: flake
```
-```./cluster/kubecfg.sh -c controller.yaml create replicaControllers```
+```./cluster/kubectl.sh create -f controller.yaml```
This will spin up 100 instances of the test. They will run to completion, then exit, the kubelet will restart them, eventually you will have sufficient
-runs for your purposes, and you can stop the replication controller:
+runs for your purposes, and you can stop the replication controller by setting the ```replicas``` field to 0 and then running:
```sh
-./cluster/kubecfg.sh stop flakeController
-./cluster/kubecfg.sh rm flakeController
+./cluster/kubectl.sh update -f controller.yaml
+./cluster/kubectl.sh delete -f controller.yaml
```
Now examine the machines with ```docker ps -a``` and look for tasks that exited with non-zero exit codes (ignore those that exited -1, since that's what happens when you stop the replica controller)