...
To use DataLake, you need to have at least one of these systems ready. Once DataLake is deployed, you can configure Topic and storage in the DataLake Admin UI.
Deployment Steps
Preconfiguration of tiller and helm
DL-handler consists of two pods- the feeder and admin UI. It can be deployed by using cloudify Helm plug-in. Since the tiller IP address and port should be exposed and accessed by Helm, some additional configuration steps are needed. the detailed pre-configuration steps can be found in the Cloudify Helm Plugin wiki page.
Next, the cloudify input file of datalake should be placed into bootstrap pod. The input file can be found in ONAP git repository. Once you clone the repository, the blueprint file could be copied to the DCAE bootstrap pod through the command line.
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | Download Blueprint to the pod. |
---|
linenumbers | true |
---|
|
kubectl cp <source directory>/components/datalake-handler/dpo/blueprint/k8s-datalake-helm-input.yaml <DCAE bootstrap pod>:/blueprint -n onap |
Log-in to the DCAE bootstrap POD's main container
The following command lets you log in to the DCAE bootstrap pod.
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | Validate Blueprint |
---|
linenumbers | true |
---|
|
kubectl exec -it <DCAE bootstrap pod> /bin/bash -n onap |
Validate blueprint
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | Validate Blueprint |
---|
linenumbers | true |
---|
|
cfy blueprints validate /blueprints/k8s-dl-handler.yaml |
Upload the blueprint to cloudify manager.
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | Validate Blueprint |
---|
linenumbers | true |
---|
|
cfy blueprint upload -b datalake /bluerint/k8s-helm.yaml |
Verify Plugin versions in target Cloudify instance match to blueprint imports
If the version of plugin used is different, update the blueprint import to match.
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | Verify Plugin version |
---|
linenumbers | true |
---|
|
cfy plugins list |
Before deployment, the input file should be edited to point to your tiller service and helm repository. The input file should be placed in /blueprints.
...
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | Upload and deploy blueprint |
---|
linenumbers | true |
---|
|
cfy install -b datalake -d datalake-deployment -i /blueprints/k8s-datalake-helm-input.yaml /blueprints/k8s-helm.yaml |
To
...
Un-deploy
Uninstall running component and delete deployment
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | Uninstall component |
---|
linenumbers | true |
---|
|
cfy uninstall datalake-deployment |
Delete blueprint
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | Delete blueprint |
---|
linenumbers | true |
---|
|
cfy blueprints delete |
...
Initial Validation
After deployment, verify if dl-handler POD and mongoDB pod are running correctly
...