[APACHECNF] Various updates of the demo
[demo.git] / tutorials / ApacheCNF / service_config.yaml
1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2022 Orange
3 # Modification Copyright (C) 2022 Deutsche Telekom AG
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #      http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17 # ============LICENSE_END=========================================================
18 user_params:
19   company_name: &company company
20   cnf_name: &cnf_name apache
21   k8s_namespace: test-cnf
22   k8s_version: 1.18.9
23   k8s_region: &region cnf-region
24   release_name: rel-1
25 #  profile_source: cnf-cds-base-profile
26   profile_source: node-port-profile
27   skip_day_2: &skip_day_2 True
28
29 cloud_regions:
30   - name: *region
31     cloud_owner: K8sCloudOwner
32     cloud_type: k8s
33     complex_id: k8scomplex1
34     tenants:
35       - name: &tenant  "{{ user_params.k8s_region }}-tenant"
36         k8s_version: "{{ user_params.k8s_version }}"
37     kubeconfig_file: artifacts/kubeconfig
38 # - name: openstack-region-test
39 #   cloud_owner: CloudOwner
40 #   cloud_type: openstack
41 #   complex_id: complex1
42 #   tenants:
43 #     - name: &my_tenant1 onap-dev
44 #       id: 5117085204e84027a8d1a0cf34abb0ba
45 #   identity_url: http://test:5000/v4
46 #   mso_id: test_user
47 #   mso_pass: test_encrypted_password
48 #   identity_server_type: KEYSTONE_V3
49
50 service_model:
51   macro_orchestration: True
52   model_name: &service_model_name "{{ user_params.cnf_name }}_{{ user_params.skip_day_2 }}_k8s_cnf_demo"
53   vnfs:
54     - model_name: &vnf_1_model_name "{{ user_params.cnf_name }}"
55       vsp:
56         vsp_file: vsp/native_cnf_k8s_demo.zip
57         vendor: cnf_vendor
58         sdnc_artifact_name: vnf
59         skip_post_instantiation_configuration: *skip_day_2
60 #  pnfs:
61 #    - model_name: pnf_example
62 #      vsp:
63 #        vsp_file: vsp/pnf_package.csar
64 #        vendor: pnf_vendor
65 #        skip_post_instantiation_configuration: False
66
67
68 service_instance:
69   model_name: *service_model_name
70   instance_name: I_{{ service_model.model_name }}_{{ user_params.release_name }}
71   customer_id: *company
72   cloud_region: *region # "{{ cloud_regions[0].name }}"
73   tenant_name: *tenant  # "{{ cloud_regions[0].tenants[0].name }}"
74   service_type: *cnf_name
75   vnfs:
76     - model_name: *vnf_1_model_name
77       #vnf_name_suffix: "001" #needed when more than one vnf instance
78       parameters:
79         k8s-rb-profile-namespace: "{{ user_params.k8s_namespace }}"
80         k8s-rb-profile-k8s-version: "{{ user_params.k8s_version }}"
81       processing_priority: 1 # may be used to order vnf deployment
82       vf_modules:
83         - model_name: helm_apache
84           vf_module_name_suffix: "001"
85           processing_priority: 1 # may be used to order vf-module deployment
86           parameters:
87             k8s-rb-profile-name: "{{ user_params.profile_source }}-{{ user_params.k8s_namespace }}"
88             k8s-rb-profile-source: "{{ user_params.profile_source }}"
89             k8s-rb-instance-release-name: "{{ user_params.release_name }}"
90             k8s-rb-profile-namespace: "{{ user_params.k8s_namespace }}"
91             k8s-rb-config-template-name: replica-count-template
92             k8s-rb-config-name: replica-count-change
93             k8s-rb-config-value-source: custom-values
94 #  pnfs:
95 #    - model_name: pnf_example