blob: b62a540673fbfefcae81ea1aab23a7cc558babda [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
3
4Configuration
5=============
6
Vijay VK6b0fa462019-05-20 16:06:11 +01007DACEGEN2 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 +00008
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -04009For Frankfurt release, the helm charts for each platform component can be controlled via separate override file
10https://wiki.onap.org/pages/viewpage.action?pageId=71837415
Lusheng Jif82a6c42017-10-13 17:56:38 +000011
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040012
13
Vijay VK6b0fa462019-05-20 16:06:11 +010014
15.. csv-table::
16 :header: "Component", "Charts"
17 :widths: 22,100
18
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040019 "Cloudify", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/components/dcae-cloudify-manager"
20 "ConfigBinding Service", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/components/dcae-config-binding-service"
21 "Deployment Handler", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/components/dcae-deployment-handler"
22 "Policy Handler", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/components/dcae-policy-handler"
23 "ServiceChangeHandler", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/components/dcae-servicechange-handler"
24 "Inventory", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/components/dcae-inventory-api"
25 "Dashboard", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/components/dcae-dashboard"
Vijay VK6b0fa462019-05-20 16:06:11 +010026
27
Vijay VKf9e43442019-05-22 22:10:29 +010028
29Deployment time configuration of DCAE components are defined in several places.
30
31 * Helm Chart templates:
32 * Helm/Kubernetes template files can contain static values for configuration parameters;
33 * Helm Chart resources:
34 * Helm/Kubernetes resources files can contain static values for configuration parameters;
35 * Helm values.yaml files:
36 * The values.yaml files supply the values that Helm templating engine uses to expand any templates defined in Helm templates;
37 * In a Helm chart hierarchy, values defined in values.yaml files in higher level supersedes values defined in values.yaml files in lower level;
38 * Helm command line supplied values supersedes values defined in any values.yaml files.
39
40In addition, for DCAE components deployed through Cloudify Manager blueprints, their configuration parameters are defined in the following places:
41
42 * The blueprint files can contain static values for configuration parameters;
43 * The blueprint files are defined under the ``blueprints`` directory of the ``dcaegen2/platform/blueprints`` repo, named with "k8s" prefix.
44 * 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):
45 * The blueprint files can define default values for the input parameters;
46 * 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;
47 * The blueprint input files may contain Helm templates, which are resolved into actual deployment time values following the rules for Helm values.
48
49
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040050DCAE Service components are deployed via Cloudify Blueprints. Instruction for deployment and configuration are documented under https://docs.onap.org/en/latest/submodules/dcaegen2.git/docs/sections/services/serviceindex.html
Vijay VKf9e43442019-05-22 22:10:29 +010051
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040052Now we walk through an example, how to configure the Docker image for the DCAE VESCollector, which is deployed by Cloudify Manager.
53
54In 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 +010055
56.. code-block:: yaml
57
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040058 tag_version:
59 type: string
60 default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:1.5.4"
61
62The 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 +010063it is defined again as:
64
65.. code-block:: yaml
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040066 {{ if .Values.componentImages.ves }}
67 tag_version: {{ include "common.repository" . }}/{{ .Values.componentImages.ves }}
68 {{ end }}
69
Vijay VKf9e43442019-05-22 22:10:29 +010070
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040071Thus, when ``common.repository`` and ``componentImages.ves`` are defined in the ``values.yaml`` files,
72their values will be plugged in here and the resulting ``tag_version`` value
73will 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 +010074
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040075The ``componentImages.ves`` value is provided in the ``oom/kubernetes/dcaegen2/charts/dcae-bootstrap/values.yaml`` file:
Vijay VKf9e43442019-05-22 22:10:29 +010076
77.. code-block:: yaml
78
79 componentImages:
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040080 ves: onap/org.onap.dcaegen2.collectors.ves.vescollector:1.5.4