summaryrefslogtreecommitdiffstats
path: root/tools/kubernetes/demo_deploy.sh
diff options
context:
space:
mode:
authorBryan Sullivan <bryan.sullivan@att.com>2017-10-31 07:20:28 -0700
committerBryan Sullivan <bryan.sullivan@att.com>2017-10-31 07:20:28 -0700
commit63533a0058f9e313dbd818fceb5551813f0a8950 (patch)
tree2ee24c53d5d4c61263f615d9910b620a093099f6 /tools/kubernetes/demo_deploy.sh
parent4518364b4ce515884eadf476ae6db021210bd7f0 (diff)
Add log function; fix line endings
JIRA: MODELS-23 Change-Id: Ie464181659db2d229dc83b9877dea2a64d6bb06b Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
Diffstat (limited to 'tools/kubernetes/demo_deploy.sh')
-rw-r--r--tools/kubernetes/demo_deploy.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/kubernetes/demo_deploy.sh b/tools/kubernetes/demo_deploy.sh
index 8d5cbd2..7489622 100644
--- a/tools/kubernetes/demo_deploy.sh
+++ b/tools/kubernetes/demo_deploy.sh
@@ -56,7 +56,7 @@ eval `ssh-agent`
ssh-add $key
if [[ "x$extras" != "x" ]]; then source $extras; fi
scp -o StrictHostKeyChecking=no $key ubuntu@$master:/home/ubuntu/$key
-echo "Setting up kubernetes..."
+echo "$0 $(date): Setting up kubernetes..."
scp -r -o StrictHostKeyChecking=no ~/models/tools/kubernetes/* \
ubuntu@$master:/home/ubuntu/.
ssh -x -o StrictHostKeyChecking=no ubuntu@$master <<EOF
@@ -78,7 +78,7 @@ ssh-add $key
cd models/tools/prometheus
bash prometheus-tools.sh all "$workers"
EOF
-echo "Setting up cloudify..."
+echo "$0 $(date): Setting up cloudify..."
scp -r -o StrictHostKeyChecking=no ~/models/tools/cloudify \
ubuntu@$master:/home/ubuntu/.
ssh -x -o StrictHostKeyChecking=no ubuntu@$master \
@@ -88,7 +88,7 @@ ssh -x -o StrictHostKeyChecking=no ubuntu@$master \
ssh -x -o StrictHostKeyChecking=no ubuntu@$master \
bash cloudify/k8s-cloudify.sh demo
-echo "All done!"
+echo "$0 $(date): All done!"
export NODE_PORT=$(ssh -x -o StrictHostKeyChecking=no ubuntu@$master kubectl get --namespace default -o jsonpath="{.spec.ports[0].nodePort}" services dw-dokuwiki)
export NODE_IP=$(ssh -x -o StrictHostKeyChecking=no ubuntu@$master kubectl get nodes --namespace default -o jsonpath="{.items[0].status.addresses[0].address}")
echo "Helm chart demo app dokuwiki is available at http://$NODE_IP:$NODE_PORT/"