From 30ed07b98086230209813a760a7f459b8e84b297 Mon Sep 17 00:00:00 2001 From: Bryan Sullivan Date: Tue, 21 Nov 2017 08:33:07 -0800 Subject: Add VES setup to demo deploy. JIRA: MODELS-2 Change-Id: Idc182305e8291fe094d9337282778751233f6487 Signed-off-by: Bryan Sullivan --- tools/kubernetes/demo_deploy.sh | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/tools/kubernetes/demo_deploy.sh b/tools/kubernetes/demo_deploy.sh index c585a3e..b8a6cd1 100644 --- a/tools/kubernetes/demo_deploy.sh +++ b/tools/kubernetes/demo_deploy.sh @@ -16,12 +16,10 @@ #. What this is: Complete scripted deployment of an experimental kubernetes-based #. cloud-native application platform. When complete, kubernetes and the following #. will be installed: -#. - helm and dokuwiki as a demo helm cart based application +#. - helm and dokuwiki as a demo helm chart based application #. - prometheus + grafana for cluster monitoring/stats #. - cloudify + kubernetes plugin and a demo hello world (nginx) app installed -#. will be setup with: -#. Prometheus dashboard: http://:9090 -#. Grafana dashboard: http://:3000 +#. - OPNFV VES as an ONAP-compatible monitoring platform #. #. Prerequisites: #. - Ubuntu server for kubernetes cluster nodes (master and worker nodes) @@ -100,6 +98,17 @@ run_master "bash cloudify/k8s-cloudify.sh setup" echo; echo "$0 $(date): Verifying kubernetes+helm+ceph+cloudify install..." bash ~/models/tools/cloudify/k8s-cloudify.sh demo start $master +echo; echo "$0 $(date): Setting up VES master node" +if [[ ! -d ~/ves ]]; then + git clone https://gerrit.opnfv.org/gerrit/ves ~/ves +fi +bash ~/ves/tools/demo_deploy.sh master $master $key + +echo; echo "$0 $(date): Setting up collectd for VES events from worker nodes" +for worker in $workers; do +bash ~/ves/tools/demo_deploy.sh worker $worker $key +done + echo; echo "$0 $(date): All done!" export NODE_PORT=$(ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@$master kubectl get --namespace default -o jsonpath="{.spec.ports[0].nodePort}" services dw-dokuwiki) export NODE_IP=$(ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@$master kubectl get nodes --namespace default -o jsonpath="{.items[0].status.addresses[0].address}") @@ -112,3 +121,4 @@ echo "Grafana dashboards are available at http://$master:3000 (login as admin/ad echo "Grafana API is available at http://admin:admin@$master:3000/api/v1/query?query=" echo "Kubernetes API is available at https://$master:6443/api/v1/" echo "Cloudify API access example: curl -u admin:admin --header 'Tenant: default_tenant' http://$master/api/v3.1/status" +echo "VES Grafana dashboard is at http://$master:3001 (login as admin/admin)" -- cgit 1.2.3-korg