From 68950cfed4850a7b1089ee2956f106ecd8ff132e Mon Sep 17 00:00:00 2001 From: Bryan Sullivan Date: Tue, 17 Oct 2017 13:33:32 -0700 Subject: Testing merged cloud-native models code JIRA: MODELS-23 Cleaned trailing whitespace. Fixed bugs with Rancher etc setup: - ssh -o where needed in demo_deploy.sh - Comment out Rancher-managed Grafana deploy - Pull dashboards direct from clone Change-Id: I02707488563a1db4262ebcdf735331707e36fa61 Signed-off-by: Bryan Sullivan --- tools/kubernetes/demo_deploy.sh | 25 +++++++++++++------------ tools/kubernetes/k8s-cluster.sh | 30 +++++++++++++++--------------- 2 files changed, 28 insertions(+), 27 deletions(-) (limited to 'tools/kubernetes') diff --git a/tools/kubernetes/demo_deploy.sh b/tools/kubernetes/demo_deploy.sh index b3d165b..b7935de 100644 --- a/tools/kubernetes/demo_deploy.sh +++ b/tools/kubernetes/demo_deploy.sh @@ -1,12 +1,12 @@ #!/bin/bash # Copyright 2017 AT&T Intellectual Property, Inc -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -22,14 +22,14 @@ #. will be setup with: #. Prometheus dashboard: http://:9090 #. Grafana dashboard: http://:3000 -#. +#. #. Prerequisites: #. - Ubuntu server for kubernetes cluster nodes (admin/master and agent nodes) #. - MAAS server as cluster admin for kubernetes master/agent nodes #. - Password-less ssh key provided for node setup #. Usage: on the MAAS server #. $ git clone https://gerrit.opnfv.org/gerrit/models ~/models -#. $ bash ~/models/tools/kubernetes/demo_deploy.sh "" +#. $ bash ~/models/tools/kubernetes/demo_deploy.sh "" #. "" [] #. : name of private key for cluster node ssh (in current folder) #. : space separated list of hostnames managed by MAAS @@ -51,24 +51,25 @@ ssh-add $key if [[ "x$extras" != "x" ]]; then source $extras; fi scp -o StrictHostKeyChecking=no $key ubuntu@$admin_ip:/home/ubuntu/$key echo "Setting up kubernetes..." -ssh -x ubuntu@$admin_ip <