Alex | 876e93a | 2022-12-21 12:02:13 -0600 | [diff] [blame] | 1 | {% set image_box ="127.0.0.1:44301/stacklight/busybox:1.30" %} |
Alex | f7c7863 | 2021-02-12 16:44:02 -0600 | [diff] [blame] | 2 | {% 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 %} |
Alex | 18fc381 | 2021-03-22 09:41:37 -0500 | [diff] [blame] | 7 | {% set replicas = 1 %} |
| 8 | {% set replicas_scaled = 2 %} |
| 9 | {% set namespaces = 2 %} |
| 10 | {% set serviceacc_delay = 60 %} |
Alex | f7c7863 | 2021-02-12 16:44:02 -0600 | [diff] [blame] | 11 | |
| 12 | |
| 13 | --- |
| 14 | version: 2 |
| 15 | title: MOS Kubenetes performance checks |
| 16 | subtasks: |
| 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: |
Alex | 18fc381 | 2021-03-22 09:41:37 -0500 | [diff] [blame] | 34 | image: {{image_box}} |
Alex | f7c7863 | 2021-02-12 16:44:02 -0600 | [diff] [blame] | 35 | 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 |
Alex | 18fc381 | 2021-03-22 09:41:37 -0500 | [diff] [blame] | 46 | serviceaccount_delay: {{serviceacc_delay}} |
Alex | f7c7863 | 2021-02-12 16:44:02 -0600 | [diff] [blame] | 47 | - title: Run a single workload with create/read/delete pod with configMap volume |
| 48 | scenario: |
| 49 | Kubernetes.create_and_delete_pod_with_configmap_volume: |
Alex | 18fc381 | 2021-03-22 09:41:37 -0500 | [diff] [blame] | 50 | image: {{image_box}} |
Alex | f7c7863 | 2021-02-12 16:44:02 -0600 | [diff] [blame] | 51 | 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 |
Alex | 18fc381 | 2021-03-22 09:41:37 -0500 | [diff] [blame] | 64 | serviceaccount_delay: {{serviceacc_delay}} |
Alex | f7c7863 | 2021-02-12 16:44:02 -0600 | [diff] [blame] | 65 | - title: Run a single workload with create/delete NodePort service |
| 66 | scenario: |
| 67 | Kubernetes.create_and_delete_pod_with_node_port_service: |
Alex | 18fc381 | 2021-03-22 09:41:37 -0500 | [diff] [blame] | 68 | image: {{image_box}} |
Alex | f7c7863 | 2021-02-12 16:44:02 -0600 | [diff] [blame] | 69 | 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 |
Alex | 18fc381 | 2021-03-22 09:41:37 -0500 | [diff] [blame] | 79 | serviceaccount_delay: {{serviceacc_delay}} |
Alex | f7c7863 | 2021-02-12 16:44:02 -0600 | [diff] [blame] | 80 | 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: |
Alex | 18fc381 | 2021-03-22 09:41:37 -0500 | [diff] [blame] | 85 | image: {{image_box}} |
Alex | f7c7863 | 2021-02-12 16:44:02 -0600 | [diff] [blame] | 86 | runner: |
| 87 | constant: |
| 88 | concurrency: {{concurrency}} |
| 89 | times: {{times}} |
| 90 | contexts: |
| 91 | namespaces: |
| 92 | count: {{namespaces}} |
| 93 | with_serviceaccount: true |
Alex | 18fc381 | 2021-03-22 09:41:37 -0500 | [diff] [blame] | 94 | serviceaccount_delay: {{serviceacc_delay}} |
| 95 | |