docs for k8s capcaity test
[bottlenecks.git] / docs / testing / user / userguide / kubestone / deployment_capacity.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2    .. http://creativecommons.org/licenses/by/4.0
3       .. (c) Huawei Technologies Co.,Ltd and others.
4
5 ***************************************************
6 Kubenetes Stress Test of Deployment Capacity
7 ***************************************************
8
9 Test Case
10 =========
11
12 +-----------------------------------------------------------------------------+
13 |Bottlenecks Kubestone Deployment Capacity Test                               |
14 |                                                                             |
15 +--------------+--------------------------------------------------------------+
16 |test case name| kubestone_deployment_capacity                                |
17 |              |                                                              |
18 +--------------+--------------------------------------------------------------+
19 |description   | Stress test regarding capacity of deployment                 |
20 +--------------+--------------------------------------------------------------+
21 |configuration | config file:                                                 |
22 |              |    testsuite/kubestone/testcases/deployment.yaml             |
23 |              |                                                              |
24 |              |                                                              |
25 +--------------+--------------------------------------------------------------+
26 |test result   | Capcity, Life-Cycle Duration, Available Deployments          |
27 |              |                                                              |
28 +--------------+--------------------------------------------------------------+
29
30 Configuration
31 ============
32 ::
33
34   apiVersion: apps/v1
35   kind: Deployment
36   namespace: bottlenecks-kubestone
37   test_type: Horizontal-Scaling
38   scaling_steps: 10, 50, 100, 200
39   template: None
40   metadata:
41     name: nginx-deployment
42     labels:
43       app: nginx
44   spec:
45     replicas: 3
46     selector:
47       matchLabels:
48         app: nginx
49     template:
50       metadata:
51         labels:
52           app: nginx
53       spec:
54         containers:
55         - name: nginx
56           image: nginx:1.7.9
57           ports:
58           - containerPort: 80
59