blob: bd2608f9d03e2adbfb7bb8a197b8ac64dcc69f17 [file] [log] [blame]
Lusheng Ji72c4fba2017-10-10 18:12:22 +00001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
VENKATESH KUMAR7f3e4532020-11-18 16:30:36 -05003.. _configuration:
Lusheng Ji72c4fba2017-10-10 18:12:22 +00004
5Configuration
6=============
7
Vijay VK6b0fa462019-05-20 16:06:11 +01008DACEGEN2 platform is deployed via helm charts. The configuration are maintained as on values.yaml and can be updated for deployment if necessary.
Lusheng Ji72c4fba2017-10-10 18:12:22 +00009
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040010For Frankfurt release, the helm charts for each platform component can be controlled via separate override file
11https://wiki.onap.org/pages/viewpage.action?pageId=71837415
Lusheng Jif82a6c42017-10-13 17:56:38 +000012
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040013
14
Vijay VK6b0fa462019-05-20 16:06:11 +010015
16.. csv-table::
17 :header: "Component", "Charts"
18 :widths: 22,100
19
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040020 "Cloudify", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/components/dcae-cloudify-manager"
21 "ConfigBinding Service", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/components/dcae-config-binding-service"
22 "Deployment Handler", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/components/dcae-deployment-handler"
23 "Policy Handler", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/components/dcae-policy-handler"
24 "ServiceChangeHandler", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/components/dcae-servicechange-handler"
25 "Inventory", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/components/dcae-inventory-api"
26 "Dashboard", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/components/dcae-dashboard"
Vijay VK6b0fa462019-05-20 16:06:11 +010027
28
Vijay VKf9e43442019-05-22 22:10:29 +010029
30Deployment time configuration of DCAE components are defined in several places.
31
32 * Helm Chart templates:
33 * Helm/Kubernetes template files can contain static values for configuration parameters;
34 * Helm Chart resources:
35 * Helm/Kubernetes resources files can contain static values for configuration parameters;
36 * Helm values.yaml files:
37 * The values.yaml files supply the values that Helm templating engine uses to expand any templates defined in Helm templates;
38 * In a Helm chart hierarchy, values defined in values.yaml files in higher level supersedes values defined in values.yaml files in lower level;
39 * Helm command line supplied values supersedes values defined in any values.yaml files.
40
41In addition, for DCAE components deployed through Cloudify Manager blueprints, their configuration parameters are defined in the following places:
42
43 * The blueprint files can contain static values for configuration parameters;
44 * The blueprint files are defined under the ``blueprints`` directory of the ``dcaegen2/platform/blueprints`` repo, named with "k8s" prefix.
45 * The blueprint files can specify input parameters and the values of these parameters will be used for configuring parameters in Blueprints. The values for these input parameters can be supplied in several ways as listed below in the order of precedence (low to high):
46 * The blueprint files can define default values for the input parameters;
47 * The blueprint input files can contain static values for input parameters of blueprints. These input files are provided as config resources under the dcae-bootstrap chart;
48 * The blueprint input files may contain Helm templates, which are resolved into actual deployment time values following the rules for Helm values.
49
50
VENKATESH KUMARb938a122020-07-23 17:41:31 -040051DCAE Service components are deployed via Cloudify Blueprints. Instruction for deployment and configuration are documented under https://docs.onap.org/projects/onap-dcaegen2/en/latest/sections/services/serviceindex.html
Vijay VKf9e43442019-05-22 22:10:29 +010052
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040053Now we walk through an example, how to configure the Docker image for the DCAE VESCollector, which is deployed by Cloudify Manager.
54
55In the `k8s-ves.yaml <https://git.onap.org/dcaegen2/platform/blueprints/tree/blueprints/k8s-ves.yaml>`_ blueprint, the Docker image to use is defined as an input parameter with a default value:
Vijay VKf9e43442019-05-22 22:10:29 +010056
57.. code-block:: yaml
58
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040059 tag_version:
60 type: string
61 default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:1.5.4"
62
63The corresponding input file, ``https://git.onap.org/oom/tree/kubernetes/dcaegen2/components/dcae-bootstrap/resources/inputs/k8s-ves-inputs-tls.yaml``,
Vijay VKf9e43442019-05-22 22:10:29 +010064it is defined again as:
65
66.. code-block:: yaml
VENKATESH KUMARe21c8482020-11-12 15:00:02 -050067
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040068 {{ if .Values.componentImages.ves }}
69 tag_version: {{ include "common.repository" . }}/{{ .Values.componentImages.ves }}
70 {{ end }}
71
Vijay VKf9e43442019-05-22 22:10:29 +010072
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040073Thus, when ``common.repository`` and ``componentImages.ves`` are defined in the ``values.yaml`` files,
74their values will be plugged in here and the resulting ``tag_version`` value
75will be passed to the blueprint as the Docker image tag to use instead of the default value in the blueprint.
Vijay VKf9e43442019-05-22 22:10:29 +010076
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040077The ``componentImages.ves`` value is provided in the ``oom/kubernetes/dcaegen2/charts/dcae-bootstrap/values.yaml`` file:
Vijay VKf9e43442019-05-22 22:10:29 +010078
79.. code-block:: yaml
80
81 componentImages:
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040082 ves: onap/org.onap.dcaegen2.collectors.ves.vescollector:1.5.4
Zebek Bogumil6c14cde2021-03-18 07:37:04 +010083
84Config maps
85-----------
86
87During installation of DCAEGEN2 module two config maps are installed by default: dcae-external-repo-configmap-schema-map and dcae-external-repo-configmap-sa88-rel16.
88
89Config maps are used by DCAEGEN VES and VES OPEN API components.
90
91Instruction how to generate the content of config maps is described in `README <https://gerrit.onap.org/r/gitweb?p=oom/utils.git;a=blob_plain;f=external-schema-repo-generator/README.md;hb=refs/heads/master>`_ file.