| 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 %} | 
|  | 9 |  | 
|  | 10 |  | 
|  | 11 | --- | 
|  | 12 | version: 2 | 
|  | 13 | title: MOS Kubenetes performance checks | 
|  | 14 | subtasks: | 
|  | 15 | - title: Run a single workload with listing existing kubernetes namespaces | 
|  | 16 | scenario: | 
|  | 17 | Kubernetes.list_namespaces: {} | 
|  | 18 | runner: | 
|  | 19 | constant: | 
|  | 20 | concurrency: {{concurrency}} | 
|  | 21 | times: {{times}} | 
|  | 22 | - title: Run a single workload with create/read/delete namespace | 
|  | 23 | scenario: | 
|  | 24 | Kubernetes.create_and_delete_namespace: {} | 
|  | 25 | runner: | 
|  | 26 | constant: | 
|  | 27 | concurrency: {{concurrency}} | 
|  | 28 | times: {{times}} | 
|  | 29 | - title: Run a single workload with create/read/delete job | 
|  | 30 | scenario: | 
|  | 31 | Kubernetes.create_and_delete_job: | 
|  | 32 | image: {{image_cirros}} | 
|  | 33 | command: | 
|  | 34 | - echo | 
|  | 35 | - "SUCCESS" | 
|  | 36 | runner: | 
|  | 37 | constant: | 
|  | 38 | concurrency: {{concurrency}} | 
|  | 39 | times: {{times}} | 
|  | 40 | contexts: | 
|  | 41 | namespaces: | 
|  | 42 | count: {{namespaces}} | 
|  | 43 | with_serviceaccount: true | 
|  | 44 | - title: Run a single workload with create/read/delete pod with configMap volume | 
|  | 45 | scenario: | 
|  | 46 | Kubernetes.create_and_delete_pod_with_configmap_volume: | 
|  | 47 | image: {{image_pause}} | 
|  | 48 | mount_path: /var/log/check.txt | 
|  | 49 | subpath: check.txt | 
|  | 50 | configmap_data: | 
|  | 51 | check.txt: | | 
|  | 52 | test | 
|  | 53 | runner: | 
|  | 54 | constant: | 
|  | 55 | concurrency: {{concurrency}} | 
|  | 56 | times: {{times}} | 
|  | 57 | contexts: | 
|  | 58 | namespaces: | 
|  | 59 | count: {{namespaces}} | 
|  | 60 | with_serviceaccount: true | 
|  | 61 | - title: Run a single workload with create/read/delete pod with local PVC | 
|  | 62 | scenario: | 
|  | 63 | Kubernetes.create_and_delete_pod_with_local_persistent_volume: | 
|  | 64 | persistent_volume: | 
|  | 65 | size: 1Gi | 
|  | 66 | volume_mode: Block | 
|  | 67 | local_path: /var/tmp | 
|  | 68 | access_modes: | 
|  | 69 | - ReadWriteOnce | 
|  | 70 | node_affinity: | 
|  | 71 | required: | 
|  | 72 | nodeSelectorTerms: | 
|  | 73 | - matchExpressions: | 
|  | 74 | - key: kubernetes.io/os | 
|  | 75 | operator: In | 
|  | 76 | values: | 
|  | 77 | - linux | 
|  | 78 | persistent_volume_claim: | 
|  | 79 | size: 250Mi | 
|  | 80 | access_modes: | 
|  | 81 | - ReadWriteOnce | 
|  | 82 | image: {{image_box}} | 
|  | 83 | mount_path: /opt/check | 
|  | 84 | runner: | 
|  | 85 | constant: | 
|  | 86 | concurrency: {{concurrency}} | 
|  | 87 | times: {{times}} | 
|  | 88 | contexts: | 
|  | 89 | namespaces: | 
|  | 90 | count: {{namespaces}} | 
|  | 91 | with_serviceaccount: true | 
|  | 92 | local_storageclass: {} | 
|  | 93 | - title: Run a single workload with create/delete NodePort service | 
|  | 94 | scenario: | 
|  | 95 | Kubernetes.create_and_delete_pod_with_node_port_service: | 
|  | 96 | image: {{image_pause}} | 
|  | 97 | port: 80 | 
|  | 98 | protocol: TCP | 
|  | 99 | runner: | 
|  | 100 | constant: | 
|  | 101 | concurrency: {{concurrency}} | 
|  | 102 | times: {{times}} | 
|  | 103 | contexts: | 
|  | 104 | namespaces: | 
|  | 105 | count: {{namespaces}} | 
|  | 106 | with_serviceaccount: true | 
|  | 107 | kubernetes.cfg: | 
|  | 108 | prepoll_delay: 1 | 
|  | 109 | - title: Run a single workload with create/read/delete pod | 
|  | 110 | scenario: | 
|  | 111 | Kubernetes.create_and_delete_pod: | 
|  | 112 | image: {{image_pause}} | 
|  | 113 | runner: | 
|  | 114 | constant: | 
|  | 115 | concurrency: {{concurrency}} | 
|  | 116 | times: {{times}} | 
|  | 117 | contexts: | 
|  | 118 | namespaces: | 
|  | 119 | count: {{namespaces}} | 
|  | 120 | with_serviceaccount: true |