From 57abb1a50bd5d08d9df687210af913f7b5d48a09 Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Fri, 9 Mar 2018 13:38:28 -0800 Subject: Switch to OOM master branch Change-Id: Id22337bd61425c69be88fd80f86bc501f46d7e78 Issue-ID: INT-439 Signed-off-by: Gary Wu --- deployment/heat/onap-oom/k8s_vm_entrypoint.sh | 178 +++------------------- deployment/heat/onap-oom/onap-oom.yaml | 1 + deployment/heat/onap-oom/rancher_vm_entrypoint.sh | 2 +- deployment/heat/onap-oom/scripts/deploy.sh | 2 +- 4 files changed, 21 insertions(+), 162 deletions(-) diff --git a/deployment/heat/onap-oom/k8s_vm_entrypoint.sh b/deployment/heat/onap-oom/k8s_vm_entrypoint.sh index 9118c8e24..119e40a04 100644 --- a/deployment/heat/onap-oom/k8s_vm_entrypoint.sh +++ b/deployment/heat/onap-oom/k8s_vm_entrypoint.sh @@ -23,8 +23,8 @@ apt-get -y install linux-image-extra-$(uname -r) jq cd ~ -# install docker 1.12 -curl -s https://releases.rancher.com/install-docker/1.12.sh | sh +# install docker 17.03 +curl -s https://releases.rancher.com/install-docker/17.03.sh | sh usermod -aG docker ubuntu # install kubernetes 1.8.6 @@ -33,10 +33,14 @@ chmod +x ./kubectl sudo mv ./kubectl /usr/local/bin/kubectl mkdir ~/.kube -# install helm 2.3 -wget -q http://storage.googleapis.com/kubernetes-helm/helm-v2.3.0-linux-amd64.tar.gz -tar -zxvf helm-v2.3.0-linux-amd64.tar.gz +# install helm +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 @@ -91,7 +95,7 @@ tar xvf rancher-linux-amd64-v0.6.7.tar # Clone OOM: cd ~ -git clone -b amsterdam http://gerrit.onap.org/r/oom +git clone -b master http://gerrit.onap.org/r/oom # Update values.yaml to point to docker-proxy instead of nexus3: cd ~/oom/kubernetes @@ -131,165 +135,21 @@ sed -i "s/kubeMasterAuthToken:.*/kubeMasterAuthToken: $KUBETOKEN/" ~/oom/kuberne # Create or edit ~/oom/kubernetes/config/onap-parameters.yaml cat > ~/oom/kubernetes/config/onap-parameters.yaml <