blob: 137fbbb49383027907ccc91691d50e5b917202cb [file] [log] [blame]
Alex876e93a2022-12-21 12:02:13 -06001{% set image_box ="127.0.0.1:44301/stacklight/busybox:1.30" %}
Alexf7c78632021-02-12 16:44:02 -06002{% set image_box = "busybox" %}
3{% set image_pause = "mirantis.azurecr.io/general/external/pause:3.1" %}
4{% set image_cirros = "virtlet/download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img" %}
5{% set concurrency = 5 %}
6{% set times = 100 %}
Alex18fc3812021-03-22 09:41:37 -05007{% set replicas = 1 %}
8{% set replicas_scaled = 2 %}
9{% set namespaces = 2 %}
10{% set serviceacc_delay = 60 %}
Alexf7c78632021-02-12 16:44:02 -060011
12
13---
14version: 2
15title: MOS Kubenetes performance checks
16subtasks:
17- title: Run a single workload with listing existing kubernetes namespaces
18 scenario:
19 Kubernetes.list_namespaces: {}
20 runner:
21 constant:
22 concurrency: {{concurrency}}
23 times: {{times}}
24- title: Run a single workload with create/read/delete namespace
25 scenario:
26 Kubernetes.create_and_delete_namespace: {}
27 runner:
28 constant:
29 concurrency: {{concurrency}}
30 times: {{times}}
31- title: Run a single workload with create/read/delete job
32 scenario:
33 Kubernetes.create_and_delete_job:
Alex18fc3812021-03-22 09:41:37 -050034 image: {{image_box}}
Alexf7c78632021-02-12 16:44:02 -060035 command:
36 - echo
37 - "SUCCESS"
38 runner:
39 constant:
40 concurrency: {{concurrency}}
41 times: {{times}}
42 contexts:
43 namespaces:
44 count: {{namespaces}}
45 with_serviceaccount: true
Alex18fc3812021-03-22 09:41:37 -050046 serviceaccount_delay: {{serviceacc_delay}}
Alexf7c78632021-02-12 16:44:02 -060047- title: Run a single workload with create/read/delete pod with configMap volume
48 scenario:
49 Kubernetes.create_and_delete_pod_with_configmap_volume:
Alex18fc3812021-03-22 09:41:37 -050050 image: {{image_box}}
Alexf7c78632021-02-12 16:44:02 -060051 mount_path: /var/log/check.txt
52 subpath: check.txt
53 configmap_data:
54 check.txt: |
55 test
56 runner:
57 constant:
58 concurrency: {{concurrency}}
59 times: {{times}}
60 contexts:
61 namespaces:
62 count: {{namespaces}}
63 with_serviceaccount: true
Alex18fc3812021-03-22 09:41:37 -050064 serviceaccount_delay: {{serviceacc_delay}}
Alexf7c78632021-02-12 16:44:02 -060065- title: Run a single workload with create/delete NodePort service
66 scenario:
67 Kubernetes.create_and_delete_pod_with_node_port_service:
Alex18fc3812021-03-22 09:41:37 -050068 image: {{image_box}}
Alexf7c78632021-02-12 16:44:02 -060069 port: 80
70 protocol: TCP
71 runner:
72 constant:
73 concurrency: {{concurrency}}
74 times: {{times}}
75 contexts:
76 namespaces:
77 count: {{namespaces}}
78 with_serviceaccount: true
Alex18fc3812021-03-22 09:41:37 -050079 serviceaccount_delay: {{serviceacc_delay}}
Alexf7c78632021-02-12 16:44:02 -060080 kubernetes.cfg:
81 prepoll_delay: 1
82- title: Run a single workload with create/read/delete pod
83 scenario:
84 Kubernetes.create_and_delete_pod:
Alex18fc3812021-03-22 09:41:37 -050085 image: {{image_box}}
Alexf7c78632021-02-12 16:44:02 -060086 runner:
87 constant:
88 concurrency: {{concurrency}}
89 times: {{times}}
90 contexts:
91 namespaces:
92 count: {{namespaces}}
93 with_serviceaccount: true
Alex18fc3812021-03-22 09:41:37 -050094 serviceaccount_delay: {{serviceacc_delay}}
95