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