Feature 10509: Add support for scaling KDUs
[osm/IM.git] / tests / examples / vnfd_sol006_k8s_scale.yaml
1 #  Copyright 2020 Whitestack LLC
2 #
3 #  Licensed under the Apache License, Version 2.0 (the "License");
4 #  you may not use this file except in compliance with the License.
5 #  You may obtain a copy of the License at
6 #
7 #    http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #  Unless required by applicable law or agreed to in writing, software
10 #  distributed under the License is distributed on an "AS IS" BASIS,
11 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12 #  implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15
16 vnfd:
17   id: native_k8s_charm-vnf
18   product-name: native_k8s_charm-vnf
19   version: "1.0"
20   mgmt-cp: mgmt-ext
21
22   kdu:
23     - name: wordpress-kdu
24       juju-bundle: bundle.yaml
25
26   df:
27     - id: default-df
28       kdu-resource-profile:
29         - id: mysql-scale
30           kdu-name: wordpress-kdu
31           resource-name: mysql
32           min-number-of-instances: 1
33         - id: nginx-scale
34           kdu-name: wordpress-kdu
35           resource-name: nginx
36           min-number-of-instances: 1
37           max-number-of-instances: 11
38       scaling-aspect:
39         - id: scale_wordpresskdu
40           name: scale_wordpresskdu
41           max-scale-level: 10
42           aspect-delta-details:
43             deltas:
44               - id: wordpress-kdu
45                 kdu-resource-delta:
46                   - id: mysql-scale
47                     number-of-instances: 2
48                   - id: nginx-scale
49                     number-of-instances: 1
50       lcm-operations-configuration:
51         operate-vnf-op-config:
52           day1-2:
53             - id: wordpress-kdu
54               config-primitive:
55                 - name: changecontent
56                   parameter:
57                     - data-type: STRING
58                       default-value: nginx
59                       name: application-name
60                     - data-type: STRING
61                       default-value: ""
62                       name: customtitle
63               initial-config-primitive:
64                 - name: changecontent
65                   parameter:
66                     - data-type: STRING
67                       name: application-name
68                       value: nginx
69                     - data-type: STRING
70                       name: customtitle
71                       value: Initial Config Primitive
72                   seq: 1