Merge pull request #8349 from caesarxuchao/flaky-tests-docs

update docs/devel flaky-tests to v1beta3
This commit is contained in:
Nikhil Jindal 2015-05-18 10:18:25 -07:00
commit 9298638658

View File

@ -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: Create a replication controller with the following config:
```yaml ```yaml
id: flakecontroller apiVersion: v1beta3
kind: ReplicationController kind: ReplicationController
apiVersion: v1beta1 metadata:
desiredState: name: flakecontroller
spec:
replicas: 24 replicas: 24
replicaSelector: template:
name: flake metadata:
podTemplate: labels:
desiredState: name: flake
manifest: spec:
version: v1beta1 containers:
id: "" - name: flake
volumes: [] image: brendanburns/flake
containers: env:
- name: flake - name: TEST_PACKAGE
image: brendanburns/flake value: pkg/tools
env: - name: REPO_SPEC
- name: TEST_PACKAGE value: https://github.com/GoogleCloudPlatform/kubernetes
value: pkg/tools
- name: REPO_SPEC
value: https://github.com/GoogleCloudPlatform/kubernetes
restartpolicy: {}
labels:
name: flake
labels:
name: flake
``` ```
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``` ```./cluster/kubectl.sh create -f controller.yaml```