summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChao Xu <xuchao@google.com>2015-05-15 15:28:28 -0700
committerChao Xu <xuchao@google.com>2015-05-17 15:48:33 -0700
commitcf0bda9102a72d6fb78c716882dc280f2394abfe (patch)
tree438038372b8d46212a7697e4f63af0e8af1f1107
parentb67f72a3168e3be7368c968d93172a365bd84eb1 (diff)
update docs/devel flaky-tests to v1beta3
-rw-r--r--flaky-tests.md42
1 files changed, 18 insertions, 24 deletions
diff --git a/flaky-tests.md b/flaky-tests.md
index e352e110..a7ea75f8 100644
--- a/flaky-tests.md
+++ b/flaky-tests.md
@@ -11,33 +11,27 @@ 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
+apiVersion: v1beta3
kind: ReplicationController
-apiVersion: v1beta1
-desiredState:
+metadata:
+ name: flakecontroller
+spec:
replicas: 24
- replicaSelector:
- name: flake
- podTemplate:
- desiredState:
- manifest:
- version: v1beta1
- id: ""
- volumes: []
- containers:
- - name: flake
- image: brendanburns/flake
- env:
- - name: TEST_PACKAGE
- value: pkg/tools
- - name: REPO_SPEC
- value: https://github.com/GoogleCloudPlatform/kubernetes
- restartpolicy: {}
- labels:
- name: flake
-labels:
- name: flake
+ template:
+ metadata:
+ labels:
+ name: flake
+ spec:
+ containers:
+ - name: flake
+ image: brendanburns/flake
+ env:
+ - name: TEST_PACKAGE
+ value: pkg/tools
+ - name: REPO_SPEC
+ value: https://github.com/GoogleCloudPlatform/kubernetes
```
+Note that we omit the labels and the selector fields of the replication controller, because they will be populated from the labels field of the pod template by default.
```./cluster/kubectl.sh create -f controller.yaml```