Lusheng Ji | 72c4fba | 2017-10-10 18:12:22 +0000 | [diff] [blame] | 1 | .. This work is licensed under a Creative Commons Attribution 4.0 International License. |
| 2 | .. http://creativecommons.org/licenses/by/4.0 |
| 3 | |
| 4 | Configuration |
| 5 | ============= |
| 6 | |
Vijay VK | 6b0fa46 | 2019-05-20 16:06:11 +0100 | [diff] [blame] | 7 | DACEGEN2 platform is deployed via helm charts. The configuration are maintained as on values.yaml and can be updated for deployment if necessary. |
Lusheng Ji | 72c4fba | 2017-10-10 18:12:22 +0000 | [diff] [blame] | 8 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 9 | For Frankfurt release, the helm charts for each platform component can be controlled via separate override file |
| 10 | https://wiki.onap.org/pages/viewpage.action?pageId=71837415 |
Lusheng Ji | f82a6c4 | 2017-10-13 17:56:38 +0000 | [diff] [blame] | 11 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 12 | |
| 13 | |
Vijay VK | 6b0fa46 | 2019-05-20 16:06:11 +0100 | [diff] [blame] | 14 | |
| 15 | .. csv-table:: |
| 16 | :header: "Component", "Charts" |
| 17 | :widths: 22,100 |
| 18 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 19 | "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 VK | 6b0fa46 | 2019-05-20 16:06:11 +0100 | [diff] [blame] | 26 | |
| 27 | |
Vijay VK | f9e4344 | 2019-05-22 22:10:29 +0100 | [diff] [blame] | 28 | |
| 29 | Deployment 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 | |
| 40 | In 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 KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 50 | DCAE 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 VK | f9e4344 | 2019-05-22 22:10:29 +0100 | [diff] [blame] | 51 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 52 | Now we walk through an example, how to configure the Docker image for the DCAE VESCollector, which is deployed by Cloudify Manager. |
| 53 | |
| 54 | In 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 VK | f9e4344 | 2019-05-22 22:10:29 +0100 | [diff] [blame] | 55 | |
| 56 | .. code-block:: yaml |
| 57 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 58 | tag_version: |
| 59 | type: string |
| 60 | default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:1.5.4" |
| 61 | |
| 62 | The corresponding input file, ``https://git.onap.org/oom/tree/kubernetes/dcaegen2/components/dcae-bootstrap/resources/inputs/k8s-ves-inputs-tls.yaml``, |
Vijay VK | f9e4344 | 2019-05-22 22:10:29 +0100 | [diff] [blame] | 63 | it is defined again as: |
| 64 | |
| 65 | .. code-block:: yaml |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 66 | {{ if .Values.componentImages.ves }} |
| 67 | tag_version: {{ include "common.repository" . }}/{{ .Values.componentImages.ves }} |
| 68 | {{ end }} |
| 69 | |
Vijay VK | f9e4344 | 2019-05-22 22:10:29 +0100 | [diff] [blame] | 70 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 71 | Thus, when ``common.repository`` and ``componentImages.ves`` are defined in the ``values.yaml`` files, |
| 72 | their values will be plugged in here and the resulting ``tag_version`` value |
| 73 | will be passed to the blueprint as the Docker image tag to use instead of the default value in the blueprint. |
Vijay VK | f9e4344 | 2019-05-22 22:10:29 +0100 | [diff] [blame] | 74 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 75 | The ``componentImages.ves`` value is provided in the ``oom/kubernetes/dcaegen2/charts/dcae-bootstrap/values.yaml`` file: |
Vijay VK | f9e4344 | 2019-05-22 22:10:29 +0100 | [diff] [blame] | 76 | |
| 77 | .. code-block:: yaml |
| 78 | |
| 79 | componentImages: |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 80 | ves: onap/org.onap.dcaegen2.collectors.ves.vescollector:1.5.4 |