blob: 22e77d18c423d310955b0da9c50c84a79e0389d8 [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
Vijay VK6b0fa462019-05-20 16:06:11 +01009The following components are migrated to helm chart part of Dublin release.
Lusheng Jif82a6c42017-10-13 17:56:38 +000010
Vijay VK6b0fa462019-05-20 16:06:11 +010011ConfigBindingService
12
13.. csv-table::
14 :header: "Component", "Charts"
15 :widths: 22,100
16
17 "ConfigBinding Service", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/charts/dcae-config-binding-service"
18 "Deployment Handler", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/charts/dcae-deployment-handler"
19 "Policy Handler", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/charts/dcae-policy-handler"
20 "ServiceChangeHandler", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/charts/dcae-servicechange-handler"
21 "Invetory", "https://git.onap.org/oom/tree/kubernetes/dcaegen2/charts/dcae-servicechange-handler/charts/dcae-inventory-api"
22
23
Vijay VKf9e43442019-05-22 22:10:29 +010024
25Deployment time configuration of DCAE components are defined in several places.
26
27 * Helm Chart templates:
28 * Helm/Kubernetes template files can contain static values for configuration parameters;
29 * Helm Chart resources:
30 * Helm/Kubernetes resources files can contain static values for configuration parameters;
31 * Helm values.yaml files:
32 * The values.yaml files supply the values that Helm templating engine uses to expand any templates defined in Helm templates;
33 * In a Helm chart hierarchy, values defined in values.yaml files in higher level supersedes values defined in values.yaml files in lower level;
34 * Helm command line supplied values supersedes values defined in any values.yaml files.
35
36In addition, for DCAE components deployed through Cloudify Manager blueprints, their configuration parameters are defined in the following places:
37
38 * The blueprint files can contain static values for configuration parameters;
39 * The blueprint files are defined under the ``blueprints`` directory of the ``dcaegen2/platform/blueprints`` repo, named with "k8s" prefix.
40 * 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):
41 * The blueprint files can define default values for the input parameters;
42 * 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;
43 * The blueprint input files may contain Helm templates, which are resolved into actual deployment time values following the rules for Helm values.
44
45
46Now we walk through an example, how to configure the Docker image for the DCAE dashboard, which is deployed by Cloudify Manager.
47
48In the ``k8s-dashboard.yaml-template`` blueprint template, the Docker image to use is defined as an input parameter with a default value:
49
50.. code-block:: yaml
51
52 dashboard_docker_image:
53 description: 'Docker image for dashboard'
54 default: 'nexus3.onap.org:10001/onap/org.onap.ccsdk.dashboard.ccsdk-app-os:1.1.0-SNAPSHOT-latest'
55
56Then in the input file, ``oom/kubernetes/dcaegen2/charts/dcae-bootstrap/resources/inputs/k8s-dashboard-inputs.yaml``,
57it is defined again as:
58
59.. code-block:: yaml
60
61 dashboard_docker_image: {{ include "common.repository" . }}/{{ .Values.componentImages.dashboard }}
62
63Thus, when ``common.repository`` and ``componentImages.policy_handler`` are defined in the ``values.yaml`` files,
64their values will be plugged in here and the resulting ``policy_handler_image`` value
65will be passed to the Policy Handler blueprint as the Docker image tag to use instead of the default value in the blueprint.
66
67Indeed the ``componentImages.dashboard`` value is provided in the ``oom/kubernetes/dcaegen2/charts/dcae-bootstrap/values.yaml`` file:
68
69.. code-block:: yaml
70
71 componentImages:
72 dashboard: onap/org.onap.ccsdk.dashboard.ccsdk-app-os:1.1.0
73
Vijay VK6b0fa462019-05-20 16:06:11 +010074DCAE 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