From ca219e0084b1f261aad8f72da159fe168545cf73 Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Wed, 4 Apr 2018 11:35:55 -0700 Subject: Changes to match OOM refactoring Change-Id: I3867f366c5fd63f9d7f14708c30d0aa744d0e693 Issue-ID: INT-381 Signed-off-by: Gary Wu --- deployment/heat/onap-oom/k8s_vm_entrypoint.sh | 75 ++++++++------------------- 1 file changed, 23 insertions(+), 52 deletions(-) (limited to 'deployment/heat') diff --git a/deployment/heat/onap-oom/k8s_vm_entrypoint.sh b/deployment/heat/onap-oom/k8s_vm_entrypoint.sh index 07ef2c371..14dcf25a0 100644 --- a/deployment/heat/onap-oom/k8s_vm_entrypoint.sh +++ b/deployment/heat/onap-oom/k8s_vm_entrypoint.sh @@ -37,10 +37,6 @@ mkdir ~/.kube wget -q http://storage.googleapis.com/kubernetes-helm/helm-v2.6.1-linux-amd64.tar.gz tar -zxvf helm-v2.6.1-linux-amd64.tar.gz sudo mv linux-amd64/helm /usr/local/bin/helm -# verify version -helm version -# Rancher 1.6.14 installs 2.6.1 - if you upgrade to 2.8.0 - you will need to upgrade helm on the server to the version to level of client -helm init --upgrade # Fix virtual memory allocation for onap-log:elasticsearch: echo "vm.max_map_count=262144" >> /etc/sysctl.conf @@ -88,18 +84,6 @@ done RANCHER_AGENT_CMD=$(jq -r .command token.json) eval $RANCHER_AGENT_CMD -# download rancher CLI -wget -q https://github.com/rancher/cli/releases/download/v0.6.7/rancher-linux-amd64-v0.6.7.tar.xz -unxz rancher-linux-amd64-v0.6.7.tar.xz -tar xvf rancher-linux-amd64-v0.6.7.tar - -# Clone OOM: -cd ~ -git clone -b master http://gerrit.onap.org/r/oom - -# Update values.yaml to point to docker-proxy instead of nexus3: -cd ~/oom/kubernetes -perl -p -i -e 's/nexus3.onap.org:10001/__docker_proxy__/g' `find ./ -name values.yaml` KUBETOKEN=$(echo -n 'Basic '$(echo -n "$RANCHER_ACCESS_KEY:$RANCHER_SECRET_KEY" | base64 -w 0) | base64 -w 0) @@ -128,49 +112,32 @@ EOF export KUBECONFIG=/root/.kube/config kubectl config view -# Update ~/oom/kubernetes/kube2msb/values.yaml kubeMasterAuthToken to use the token from ~/.kube/config -sed -i "s/kubeMasterAuthToken:.*/kubeMasterAuthToken: $KUBETOKEN/" ~/oom/kubernetes/kube2msb/values.yaml - -# Put your onap_key ssh private key in ~/.ssh/onap_key - -# Create or edit ~/oom/kubernetes/config/onap-parameters.yaml -cat > ~/oom/kubernetes/config/onap-parameters.yaml <