Skip to content

Commit

Permalink
#13 add header in prep of OOM-710 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
obriensystems authored and Michael O'Brien committed Feb 16, 2018
1 parent dd588a0 commit 4b9bbe9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
11 changes: 10 additions & 1 deletion cd.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# 20171030 CD SCRIPT to replace ONAP on a running VM
# see INT-120
#
# F. Michael O'Brien
# 20180124
# WIP under construction for
# https://wiki.onap.org/questions/users?username=michaelobrien
# https://wiki.onap.org/display/DW/ONAP+on+Kubernetes
# Amsterdam
# Rancher 1.6.10, Kubernetes 1.7.7, Kubectl 1.7.7, Helm 2.3.0, Docker 1.12
# master
# Rancher 1.6.14, Kubernetes 1.8.6, Kubectl 1.8.6, Helm 2.6.0, Docker 17.3
# see migration to onap under https://jira.onap.org/browse/OOM-710
# do a chmod 777 on /dockerdata-nfs so e can delete the dir using the jenkins user
usage() {
cat <<EOF
Expand Down
2 changes: 2 additions & 0 deletions git_recurse.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# F. Michael O'Brien
# 20170523
# WIP under construction for
# https://wiki.onap.org/questions/users?username=michaelobrien
# https://wiki.onap.org/display/DW/ONAP+on+Kubernetes
# onap.org
# currently transitioning clone to use repos (with various cd structure)
# 20170531 add git clone https support (for users behind a firewall)
Expand Down
21 changes: 15 additions & 6 deletions oom_rancher_setup_1.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
# F. Michael O'Brien
# 20180124
# as root - because of the logout that would be required after the docker user set
# WIP under construction for
# https://wiki.onap.org/questions/users?username=michaelobrien
# https://wiki.onap.org/display/DW/ONAP+on+Kubernetes
# Amsterdam
# Rancher 1.6.10, Kubernetes 1.7.7, Kubectl 1.7.7, Helm 2.3.0, Docker 1.12
# master
# Rancher 1.6.14, Kubernetes 1.8.6, Kubectl 1.8.6, Helm 2.6.0, Docker 17.3
# see migration to onap under https://jira.onap.org/browse/OOM-710
#
# run as root - because of the logout that would be required after the docker user set
#curl https://releases.rancher.com/install-docker/1.12.sh | sh
curl https://releases.rancher.com/install-docker/17.03.sh | sh
# when running as non-root (ubuntu) run the following and logout/log back in
sudo usermod -aG docker ubuntu
docker run -d --restart=unless-stopped -p 8880:8080 --name rancher_server rancher/server:v1.6.14
# no Kubernetes 1.9.0 yet
#curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.9.2/bin/linux/amd64/kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.8.6/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
mkdir ~/.kube
wget http://storage.googleapis.com/kubernetes-helm/helm-v2.8.0-linux-amd64.tar.gz
tar -zxvf helm-v2.8.0-linux-amd64.tar.gz
wget http://storage.googleapis.com/kubernetes-helm/helm-v2.6.0-linux-amd64.tar.gz
tar -zxvf helm-v2.6.0-linux-amd64.tar.gz
sudo mv linux-amd64/helm /usr/local/bin/helm

# pending create of client host
# see https://wiki.onap.org/display/DW/ONAP+on+Kubernetes#ONAPonKubernetes-Registeryourhost
# pending token and paste to
#vi ~/.kube/config
echo "run the following after attaching the host"
echo "run the following after attaching the host if you installed a higher kubectl version than the server"
echo "helm init --upgrade"
#helm init --upgrade

0 comments on commit 4b9bbe9

Please sign in to comment.