summaryrefslogtreecommitdiffstats
path: root/deploy/cd.sh
diff options
context:
space:
mode:
authorroot <frank.obrien@amdocs.com>2018-12-07 12:15:11 -0500
committerroot <frank.obrien@amdocs.com>2018-12-07 12:16:00 -0500
commitb2bb34eba1adece6b7238ee21a5f9f4fe2959b8a (patch)
tree5ba60860211bdf4c8ffb3062cc8830afed8ac33d /deploy/cd.sh
parent12c57ca0cfbe70308242913f396e3653380697e8 (diff)
upgrade rancher/k8s to 1.6.25
Change-Id: I086ceeebe78c2782cb0f752f1e214794e4f8ca46 Issue-ID: LOG-895 Signed-off-by: root <frank.obrien@amdocs.com>
Diffstat (limited to 'deploy/cd.sh')
-rwxr-xr-xdeploy/cd.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/deploy/cd.sh b/deploy/cd.sh
index 295ef01..6d0ac80 100755
--- a/deploy/cd.sh
+++ b/deploy/cd.sh
@@ -15,9 +15,9 @@
# limitations under the License.
#
#############################################################################
-# v20180318
+# v20181207
# https://wiki.onap.org/display/DW/ONAP+on+Kubernetes
-# source from https://jira.onap.org/browse/OOM-715, 716, 711
+# source from https://jira.onap.org/browse/OOM-320, 326, 321
# Michael O'Brien
#
@@ -28,6 +28,7 @@ example
./cd.sh -b amsterdam -e onap (will rerun onap in the onap namespace, no new repo, no deletion of existing repo, no sdnc workaround, no onap removal at the end
./cd.sh -b master -e onap -c true -d true -w true -r true (run as cd server, new oom, delete prev oom, run workarounds, clean onap at the end of the script
./cd.sh -b master -e onap -c true -d false -w true -r false (standard new server/dev environment - use this as the default)
+provide a dev.yaml override - copy from https://git.onap.org/oom/tree/kubernetes/onap/resources/environments/dev.yaml
-u : Display usage
-b [branch] : branch = master/beijing or amsterdam (required)
@@ -44,6 +45,7 @@ deploy_onap() {
echo "$(date)"
echo "running with: -b $BRANCH -e $ENVIRON -c $CLONE_NEW_OOM -d $DELETE_PREV_OOM -w $APPLY_WORKAROUNDS -r $REMOVE_OOM_AT_END"
echo "provide onap-parameters.yaml(amsterdam) or values.yaml(master) and aai-cloud-region-put.json"
+ echo "provide a dev.yaml override - copy from https://git.onap.org/oom/tree/kubernetes/onap/resources/environments/dev.yaml"
#exit 0
# fix virtual memory for onap-log:elasticsearch under Rancher 1.6.11 - OOM-431
sudo sysctl -w vm.max_map_count=262144
@@ -73,6 +75,7 @@ deploy_onap() {
# delete potential hanging clustered pods
#kubectl delete pod $ENVIRON-aaf-sms-vault-0 -n $ENVIRON --grace-period=0 --force
# specific to when there is no helm release
+ # see https://wiki.onap.org/display/DW/Cloud+Native+Deployment#CloudNativeDeployment-RemoveaDeployment
kubectl delete pv --all
kubectl delete pvc --all
kubectl delete secrets --all
@@ -136,7 +139,7 @@ deploy_onap() {
sudo make all
sudo make $ENVIRON
#sudo helm install local/onap -n onap --namespace $ENVIRON
- sudo helm deploy onap local/onap --namespace $ENVIRON
+ sudo helm deploy onap local/onap --namespace $ENVIRON -f ../../dev.yaml
cd ../../
fi