summaryrefslogtreecommitdiffstats
path: root/deploy/rancher/oom_rancher_setup.sh
diff options
context:
space:
mode:
authorMichael O'Brien <frank.obrien@amdocs.com>2018-06-13 15:31:41 -0400
committerMichael O'Brien <frank.obrien@amdocs.com>2018-06-13 22:26:41 -0400
commitbee64e55500661f7c644ee98afe4928da2fa1a86 (patch)
tree9927b970b248b40e74eb1374f66303913cd0f7a0 /deploy/rancher/oom_rancher_setup.sh
parent947c160560eb1e1f8e446038d9a9ff3a4f26086e (diff)
adjust docker image for ip override
Change-Id: I8317f6a4901997cce90d6c3648f5dc0033d708f0 Issue-ID: LOG-325 Signed-off-by: Michael O'Brien <frank.obrien@amdocs.com>
Diffstat (limited to 'deploy/rancher/oom_rancher_setup.sh')
-rwxr-xr-xdeploy/rancher/oom_rancher_setup.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/deploy/rancher/oom_rancher_setup.sh b/deploy/rancher/oom_rancher_setup.sh
index 45107ea..9b6bf3b 100755
--- a/deploy/rancher/oom_rancher_setup.sh
+++ b/deploy/rancher/oom_rancher_setup.sh
@@ -149,8 +149,8 @@ install_onap() {
HOST_REG_COMMAND=`echo $REGISTRATION_TOKENS | jq -r .data[0].command`
echo "Running agent docker..."
if [[ "$COMPUTEADDRESS" != false ]]; then
- echo "sudo docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/racher:/var/lib/rancher $REGISTRATION_DOCKER $RANCHER_URL/v1/scripts/$REGISTRATION_TOKEN"
- sudo docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/racher:/var/lib/rancher $REGISTRATION_DOCKER $RANCHER_URL/v1/scripts/$REGISTRATION_TOKEN
+ echo "sudo docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher $REGISTRATION_DOCKER $RANCHER_URL/v1/scripts/$REGISTRATION_TOKEN"
+ sudo docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher $REGISTRATION_DOCKER $RANCHER_URL/v1/scripts/$REGISTRATION_TOKEN
else
echo "sudo docker run -e CATTLE_AGENT_IP=\"$ADDRESS\" --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.9 http://$SERVER:$PORT/v1/scripts/$TOKEN"
sudo docker run -e CATTLE_AGENT_IP="$ADDRESS" --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.9 http://$SERVER:$PORT/v1/scripts/$REGISTRATION_TOKEN
@@ -209,11 +209,12 @@ EOF
echo "add local helm repo"
sudo helm repo add local http://127.0.0.1:8879
sudo helm repo list
- echo "enabling grafana dashboard"
- kubectl expose -n kube-system deployment monitoring-grafana --type=LoadBalancer --name monitoring-grafana-client
- echo "get the nodeport for a specific VM"
- kubectl get services --all-namespaces | grep graf
- echo "finished"
+ echo "To enable grafana dashboard - do this after running cd.sh which brings up onap - or you may get a 302xx port conflict"
+ echo "kubectl expose -n kube-system deployment monitoring-grafana --type=LoadBalancer --name monitoring-grafana-client"
+ echo "to get the nodeport for a specific VM running grafana"
+ echo "kubectl get services --all-namespaces | grep graf"
+ kubectl get pods --all-namespaces
+ echo "finished!"
}
BRANCH=