blob: c14c94a54bbd231a9fa7334d20a6f62af60b8fa8 [file] [log] [blame]
Alexf7c78632021-02-12 16:44:02 -06001{% set image_box = "busybox" %}
2{% set image_pause = "mirantis.azurecr.io/general/external/pause:3.1" %}
3{% set image_cirros = "virtlet/download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img" %}
4{% set concurrency = 1 %}
5{% set times = 1 %}
6{% set replicas = 1 %}
7{% set replicas_scaled = 2 %}
8{% set namespaces = 1 %}
Alex18fc3812021-03-22 09:41:37 -05009{% set serviceacc_delay = 60 %}
Alexf7c78632021-02-12 16:44:02 -060010
11
12---
13version: 2
14title: MOS Kubenetes performance checks
15subtasks:
16- title: Run a single workload with listing existing kubernetes namespaces
17 scenario:
18 Kubernetes.list_namespaces: {}
19 runner:
20 constant:
21 concurrency: {{concurrency}}
22 times: {{times}}
23- title: Run a single workload with create/read/delete namespace
24 scenario:
25 Kubernetes.create_and_delete_namespace: {}
26 runner:
27 constant:
28 concurrency: {{concurrency}}
29 times: {{times}}
30- title: Run a single workload with create/read/delete job
31 scenario:
32 Kubernetes.create_and_delete_job:
Alex18fc3812021-03-22 09:41:37 -050033 image: {{image_box}}
Alexf7c78632021-02-12 16:44:02 -060034 command:
35 - echo
36 - "SUCCESS"
37 runner:
38 constant:
39 concurrency: {{concurrency}}
40 times: {{times}}
41 contexts:
42 namespaces:
43 count: {{namespaces}}
44 with_serviceaccount: true
Alex18fc3812021-03-22 09:41:37 -050045 serviceaccount_delay: {{serviceacc_delay}}
Alexf7c78632021-02-12 16:44:02 -060046- title: Run a single workload with create/read/delete pod with configMap volume
47 scenario:
48 Kubernetes.create_and_delete_pod_with_configmap_volume:
Alex18fc3812021-03-22 09:41:37 -050049 image: {{image_box}}
Alexf7c78632021-02-12 16:44:02 -060050 mount_path: /var/log/check.txt
51 subpath: check.txt
52 configmap_data:
53 check.txt: |
54 test
55 runner:
56 constant:
57 concurrency: {{concurrency}}
58 times: {{times}}
59 contexts:
60 namespaces:
61 count: {{namespaces}}
62 with_serviceaccount: true
Alex18fc3812021-03-22 09:41:37 -050063 serviceaccount_delay: {{serviceacc_delay}}
Alexf7c78632021-02-12 16:44:02 -060064- title: Run a single workload with create/delete NodePort service
65 scenario:
66 Kubernetes.create_and_delete_pod_with_node_port_service:
Alex18fc3812021-03-22 09:41:37 -050067 image: {{image_box}}
Alexf7c78632021-02-12 16:44:02 -060068 port: 80
69 protocol: TCP
70 runner:
71 constant:
72 concurrency: {{concurrency}}
73 times: {{times}}
74 contexts:
75 namespaces:
76 count: {{namespaces}}
77 with_serviceaccount: true
Alex18fc3812021-03-22 09:41:37 -050078 serviceaccount_delay: {{serviceacc_delay}}
Alexf7c78632021-02-12 16:44:02 -060079 kubernetes.cfg:
80 prepoll_delay: 1
81- title: Run a single workload with create/read/delete pod
82 scenario:
83 Kubernetes.create_and_delete_pod:
Alex18fc3812021-03-22 09:41:37 -050084 image: {{image_box}}
Alexf7c78632021-02-12 16:44:02 -060085 runner:
86 constant:
87 concurrency: {{concurrency}}
88 times: {{times}}
89 contexts:
90 namespaces:
91 count: {{namespaces}}
92 with_serviceaccount: true
Alex18fc3812021-03-22 09:41:37 -050093 serviceaccount_delay: {{serviceacc_delay}}
94