...
DCAE Platform in Dublin release supports new feature to deploy components via helm chart. This is enabled by integrating Helm Cloudify plugin into Cloudify Manager instance DCAE-Platform uses to deploy other required services. The cloudify plugin itself is under CCSDK project delivered part of Casablanca. For Dublin, this plugin has been integrated into DCAE ONAP deployment. Any chart available under chart rep-url specified as configuration input can be deployed.
Dublin Scope
The helm plugin was intended to support deployment scenario of stand-alone application similar to capability offered under OOM. With this plugin integration, any charts packaged under ONAP OOM can be deployed through DCAE platform in ONAP. This provides an opportunity for operators to use a single orchestration through Cloudify for deploying both Helm and Toscal work flows if required.
...
Code Block | ||||
---|---|---|---|---|
| ||||
kubectl edit svc -n kube-system tiller-deploy -o yaml # Assign an unused nodeport available in cluster |
Installation
...
language | bash |
---|---|
theme | Midnight |
...
|
...
|
...
#After |
...
update |
...
K8S |
...
svc |
...
definition should reflect the node port assigned
#verify node port assignment
kubectl get svc --all-namespaces | grep tiller
kube-system tiller-deploy ClusterIP 10.43.218.97 <none> 44134/TCP 5d |
Installation
- Modify the blueprint templates
Code Block language bash theme Midnight kubectl exec -it -n onap <dcae-bootstrap pod> /bin/bash cd blueprints ls k8s-helm.yaml k8s-helm-override.yaml # Helm Blueprint templates are available under this directory # Verify and update the blueprint parameters if required # Create a corresponding input files
Note: Explanation of parameters are documented under CCSDK wiki page : Introduction of Helm Plugin.
- Validate and Upload the blueprint into CM
Code Block language bash theme Midnight cfy blueprints validate cfy blueprints upload -b k8s-helm-test /blueprints/k8s-helm.yaml
- Deploy the blueprint
Code Block language bash theme Midnight cfy deployments create -b k8s-helm-test k8s-helm-test cfy executions start -d k8s-helm-test install
- Validation
Code Block language bash theme Midnight # Verify if new NS identified in blueprint configuration is created kubectl get ns # Verify if required component was deployed kubectl get pods -n <ns specified>
Future Enhancement
- Requires changing nodeport for tiller; since the deployment is done from bootstrap pod, clusterip/port must also be supportable
- Existing namespace cannot be used currently
- Deployment error not being logged
...