Remove Hostpath testing
[functest-kubernetes.git] / functest_kubernetes / rally / all-in-one.yaml
1 ---
2 version: 2
3 title: All in one tasks for checking basic functionality of Kubernetes cluster
4 subtasks:
5
6   - title: Run a single workload with listing existing kubernetes namespaces
7     scenario:
8       Kubernetes.list_namespaces: {}
9     runner:
10       constant:
11         concurrency: {{ concurrency }}
12         times: {{ times }}
13
14   - title: Run a single workload with create/read/delete namespace
15     scenario:
16       Kubernetes.create_and_delete_namespace: {}
17     runner:
18       constant:
19         concurrency: {{ concurrency }}
20         times: {{ times }}
21
22   - title: Run a single workload with create/read/delete pod
23     scenario:
24       Kubernetes.create_and_delete_pod:
25         image: {{ k8s_gcr_repo }}/pause:3.3
26     runner:
27       constant:
28         concurrency: {{ concurrency }}
29         times: {{ times }}
30     contexts:
31       namespaces:
32         count: {{ namespaces_count }}
33         with_serviceaccount: true
34
35   - title: Run a single workload with create/read/delete replication controller
36     scenario:
37       Kubernetes.create_and_delete_replication_controller:
38         image: {{ k8s_gcr_repo }}/pause:3.3
39         replicas: 2
40     runner:
41       constant:
42         concurrency: {{ concurrency }}
43         times: {{ times }}
44     contexts:
45       namespaces:
46         count: {{ namespaces_count }}
47         with_serviceaccount: true
48
49   - title: Run a single workload with create/scale/delete replication controller
50     scenario:
51       Kubernetes.create_scale_and_delete_replication_controller:
52         image: {{ k8s_gcr_repo }}/pause:3.3
53         replicas: 2
54         scale_replicas: 3
55     runner:
56       constant:
57         concurrency: {{ concurrency }}
58         times: {{ times }}
59     contexts:
60       namespaces:
61         count: {{ namespaces_count }}
62         with_serviceaccount: true
63
64   - title: Run a single workload with create/read/delete replicaset
65     scenario:
66       Kubernetes.create_and_delete_replicaset:
67         image: {{ k8s_gcr_repo }}/pause:3.3
68         replicas: 1
69     runner:
70       constant:
71         concurrency: {{ concurrency }}
72         times: {{ times }}
73     contexts:
74       namespaces:
75         count: {{ namespaces_count }}
76         with_serviceaccount: true
77
78   - title: Run a single workload with create/scale/delete replicaset
79     scenario:
80       Kubernetes.create_scale_and_delete_replicaset:
81         image: {{ k8s_gcr_repo }}/pause:3.3
82         replicas: 1
83         scale_replicas: 2
84     runner:
85       constant:
86         concurrency: {{ concurrency }}
87         times: {{ times }}
88     contexts:
89       namespaces:
90         count: {{ namespaces_count }}
91         with_serviceaccount: true
92
93   - title:
94       Run a single workload with create/read/delete pod with emptyDir volume
95     scenario:
96       Kubernetes.create_and_delete_pod_with_emptydir_volume:
97         image: {{ k8s_gcr_repo }}/pause:3.3
98         mount_path: /opt/check
99     runner:
100       constant:
101         concurrency: {{ concurrency }}
102         times: {{ times }}
103     contexts:
104       namespaces:
105         count: {{ namespaces_count }}
106         with_serviceaccount: true
107
108   - title: >-
109       Run a single workload with create/read/check/delete pod with emptyDir
110       volume
111     scenario:
112       Kubernetes.create_and_delete_pod_with_emptydir_volume:
113         image: {{ dockerhub_repo }}/busybox:1.28
114         command:
115           - sleep
116           - "3600"
117         mount_path: /opt/check
118         check_cmd:
119           - ls
120           - /opt/check
121         error_regexp: No such file
122     runner:
123       constant:
124         concurrency: {{ concurrency }}
125         times: {{ times }}
126     contexts:
127       namespaces:
128         count: {{ namespaces_count }}
129         with_serviceaccount: true
130
131   - title: Run a single workload with create/read/delete pod with secret volume
132     scenario:
133       Kubernetes.create_and_delete_pod_with_secret_volume:
134         image: {{ dockerhub_repo }}/busybox:1.28
135         command:
136           - sleep
137           - "3600"
138         mount_path: /opt/check
139     runner:
140       constant:
141         concurrency: {{ concurrency }}
142         times: {{ times }}
143     contexts:
144       namespaces:
145         count: {{ namespaces_count }}
146         with_serviceaccount: true
147
148   - title: Run a single workload with create/check/delete pod with secret volume
149     scenario:
150       Kubernetes.create_and_delete_pod_with_secret_volume:
151         image: {{ dockerhub_repo }}/busybox:1.28
152         command:
153           - sleep
154           - "3600"
155         mount_path: /opt/check
156         check_cmd:
157           - ls
158           - /opt/check
159         error_regexp: No such file
160     runner:
161       constant:
162         concurrency: {{ concurrency }}
163         times: {{ times }}
164     contexts:
165       namespaces:
166         count: {{ namespaces_count }}
167         with_serviceaccount: true
168
169   - title:
170       Run a single workload with create/read/delete pod with configMap volume
171     scenario:
172       Kubernetes.create_and_delete_pod_with_configmap_volume:
173         image: {{ dockerhub_repo }}/busybox:1.28
174         command:
175           - "sleep"
176           - "3600"
177         mount_path: /var/log/check.txt
178         subpath: check.txt
179         configmap_data:
180           check.txt: |
181             test
182     runner:
183       constant:
184         concurrency: {{ concurrency }}
185         times: {{ times }}
186     contexts:
187       namespaces:
188         count: {{ namespaces_count }}
189         with_serviceaccount: true
190
191   - title: >-
192       Run a single workload with create/read/check/delete pod with configMap
193       volume
194     scenario:
195       Kubernetes.create_and_delete_pod_with_configmap_volume:
196         image: {{ dockerhub_repo }}/busybox:1.28
197         command:
198           - "sleep"
199           - "3600"
200         mount_path: /var/log/check.txt
201         subpath: check.txt
202         configmap_data:
203           check.txt: |
204             test
205         check_cmd:
206           - cat
207           - /var/log/check.txt
208         error_regexp: No such file
209     runner:
210       constant:
211         concurrency: {{ concurrency }}
212         times: {{ times }}
213     contexts:
214       namespaces:
215         count: {{ namespaces_count }}
216         with_serviceaccount: true
217
218   - title: Run a single workload with create/read/delete deployment
219     scenario:
220       Kubernetes.create_and_delete_deployment:
221         image: {{ k8s_gcr_repo }}/pause:3.3
222         replicas: 2
223     runner:
224       constant:
225         concurrency: {{ concurrency }}
226         times: {{ times }}
227     contexts:
228       namespaces:
229         count: {{ namespaces_count }}
230         with_serviceaccount: true
231
232   - title: Run a single workload with create/rollout/delete deployment
233     scenario:
234       Kubernetes.create_rollout_and_delete_deployment:
235         image: {{ dockerhub_repo }}/busybox:1.28
236         replicas: 1
237         command:
238           - sleep
239           - "3600"
240         env:
241           - name: "UPD"
242             value: "false"
243         changes:
244           env:
245             - name: "UPD"
246               value: "true"
247     runner:
248       constant:
249         concurrency: {{ concurrency }}
250         times: {{ times }}
251     contexts:
252       namespaces:
253         count: {{ namespaces_count }}
254         with_serviceaccount: true
255
256   - title: Run a single workload with create/read/delete statefulset
257     scenario:
258       Kubernetes.create_and_delete_statefulset:
259         image: {{ k8s_gcr_repo }}/pause:3.3
260         replicas: 2
261     runner:
262       constant:
263         concurrency: {{ concurrency }}
264         times: {{ times }}
265     contexts:
266       namespaces:
267         count: {{ namespaces_count }}
268         with_serviceaccount: true
269
270   - title: Run a single workload with create/scale/delete statefulset
271     scenario:
272       Kubernetes.create_scale_and_delete_statefulset:
273         image: {{ k8s_gcr_repo }}/pause:3.3
274         replicas: 1
275         scale_replicas: 2
276     runner:
277       constant:
278         concurrency: {{ concurrency }}
279         times: {{ times }}
280     contexts:
281       namespaces:
282         count: {{ namespaces_count }}
283         with_serviceaccount: true
284
285   - title: Run a single workload with create/read/delete job
286     scenario:
287       Kubernetes.create_and_delete_job:
288         image: {{ dockerhub_repo }}/busybox:1.28
289         command:
290           - echo
291           - "SUCCESS"
292     runner:
293       constant:
294         concurrency: {{ concurrency }}
295         times: {{ times }}
296     contexts:
297       namespaces:
298         count: {{ namespaces_count }}
299         with_serviceaccount: true
300
301   - title: Run a single workload with create/check/delete clusterIP service
302     scenario:
303       Kubernetes.create_check_and_delete_pod_with_cluster_ip_service:
304         image: {{ gcr_repo }}/google-samples/hello-go-gke:1.0
305         port: 80
306         protocol: TCP
307     runner:
308       constant:
309         concurrency: {{ concurrency }}
310         times: {{ times }}
311     contexts:
312       namespaces:
313         count: {{ namespaces_count }}
314         with_serviceaccount: true
315
316   - title: >-
317       Run a single workload with create/check/delete clusterIP service with
318       custom endpoint
319     scenario:
320       Kubernetes.create_check_and_delete_pod_with_cluster_ip_service:
321         image: {{ gcr_repo }}/google-samples/hello-go-gke:1.0
322         port: 80
323         protocol: TCP
324         custom_endpoint: true
325     runner:
326       constant:
327         concurrency: {{ concurrency }}
328         times: {{ times }}
329     contexts:
330       namespaces:
331         count: {{ namespaces_count }}
332         with_serviceaccount: true
333
334   - title: Run a single workload with create/check/delete NodePort service
335     scenario:
336       Kubernetes.create_check_and_delete_pod_with_node_port_service:
337         image: {{ gcr_repo }}/google-samples/hello-go-gke:1.0
338         port: 80
339         protocol: TCP
340         request_timeout: 10
341     runner:
342       constant:
343         concurrency: {{ concurrency }}
344         times: {{ times }}
345     contexts:
346       namespaces:
347         count: {{ namespaces_count }}
348         with_serviceaccount: true