Merge "Add new Kubernetes resource kind: "CustomResourceDefinition""
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc080.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Huawei AB and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 ---
11
12 schema: "yardstick:task:0.1"
13 description: >
14     Yardstick TC080 config file;
15     measure network latency between containers in k8s using ping;
16
17 scenarios:
18 -
19   type: Ping
20   options:
21     packetsize: 200
22
23   host: host-k8s
24   target: target-k8s
25
26   runner:
27     type: Duration
28     duration: 60
29     interval: 1
30
31   sla:
32     max_rtt: 10
33     action: monitor
34
35 context:
36   type: Kubernetes
37   name: k8s
38
39   servers:
40     host:
41       image: openretriever/yardstick
42       command: /bin/bash
43       args: ['-c', 'mkdir /root/.ssh; cp /tmp/.ssh/authorized_keys ~/.ssh/.;
44                     chmod 700 ~/.ssh; chmod 600 ~/.ssh/*; service ssh restart;
45                     while true ; do sleep 10000; done']
46     target:
47       image: openretriever/yardstick
48       command: /bin/bash
49       args: ['-c', 'mkdir /root/.ssh; cp /tmp/.ssh/authorized_keys ~/.ssh/.;
50                     chmod 700 ~/.ssh; chmod 600 ~/.ssh/*; service ssh restart;
51                     while true ; do sleep 10000; done']