blob: 56acd916d06ba31613f146858b5b8e10589226db [file] [log] [blame]
Gary Wu1ff56672018-01-17 20:51:45 -08001#!/bin/bash -x
Gary Wua3fb86f2018-06-04 16:23:54 -07002#
3# Copyright 2018 Huawei Technologies Co., Ltd.
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11
Gary Wu3fd6c2a2018-10-28 21:44:00 -070012export DEBIAN_FRONTEND=noninteractive
Gary Wu895a4ac2018-10-31 12:30:54 -070013HOST_IP=$(hostname -I)
14echo $HOST_IP `hostname` >> /etc/hosts
Gary Wu1ff56672018-01-17 20:51:45 -080015printenv
16
Gary Wu14a6b302018-05-01 15:59:28 -070017mkdir -p /opt/config
18echo "__rancher_ip_addr__" > /opt/config/rancher_ip_addr.txt
19echo "__k8s_vm_ips__" > /opt/config/k8s_vm_ips.txt
Gary Wuad513722018-07-26 13:08:47 -070020echo "__k8s_private_ips__" > /opt/config/k8s_private_ips.txt
Gary Wu978171e2018-07-24 11:56:01 -070021echo "__public_net_id__" > /opt/config/public_net_id.txt
22echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
Gary Wu11c98742018-05-02 16:19:04 -070023echo "__oam_network_id__" > /opt/config/oam_network_id.txt
24echo "__oam_subnet_id__" > /opt/config/oam_subnet_id.txt
Gary Wu17440fe2018-10-22 15:12:07 -070025echo "__sec_group__" > /opt/config/sec_group.txt
Gary Wu87aa8b52018-08-09 08:10:24 -070026echo "__integration_gerrit_branch__" > /opt/config/integration_gerrit_branch.txt
27echo "__integration_gerrit_refspec__" > /opt/config/integration_gerrit_refspec.txt
28echo "__oom_gerrit_branch__" > /opt/config/oom_gerrit_branch.txt
29echo "__oom_gerrit_refspec__" > /opt/config/oom_gerrit_refspec.txt
Gary Wu81836d22018-06-22 13:48:50 -070030echo "__docker_manifest__" > /opt/config/docker_manifest.txt
Gary Wu978171e2018-07-24 11:56:01 -070031echo "__docker_proxy__" > /opt/config/docker_proxy.txt
Gary Wu7a04b3d2018-08-15 12:31:46 -070032echo "__docker_version__" > /opt/config/docker_version.txt
33echo "__rancher_version__" > /opt/config/rancher_version.txt
34echo "__rancher_agent_version__" > /opt/config/rancher_agent_version.txt
35echo "__kubectl_version__" > /opt/config/kubectl_version.txt
36echo "__helm_version__" > /opt/config/helm_version.txt
Gary Wu48a32942018-11-08 07:34:49 -080037echo "__helm_deploy_delay__" > /opt/config/helm_deploy_delay.txt
Gary Wub8be70a2018-11-17 17:14:38 -080038echo "__mtu__" > /opt/config/mtu.txt
Gary Wu4a69d512018-12-10 11:31:24 -080039echo "__portal_hostname__" > /opt/config/portal_hostname.txt
Gary Wu11c98742018-05-02 16:19:04 -070040
41cat <<EOF > /opt/config/integration-override.yaml
42__integration_override_yaml__
43EOF
Gary Wu4a69d512018-12-10 11:31:24 -080044sed -i 's/\_\_portal_hostname__/__portal_hostname__/g' /opt/config/integration-override.yaml
Gary Wu978171e2018-07-24 11:56:01 -070045sed -i 's/\_\_public_net_id__/__public_net_id__/g' /opt/config/integration-override.yaml
46sed -i 's|\_\_oam_network_cidr__|__oam_network_cidr__|g' /opt/config/integration-override.yaml
Gary Wu11c98742018-05-02 16:19:04 -070047sed -i 's/\_\_oam_network_id__/__oam_network_id__/g' /opt/config/integration-override.yaml
48sed -i 's/\_\_oam_subnet_id__/__oam_subnet_id__/g' /opt/config/integration-override.yaml
Gary Wu17440fe2018-10-22 15:12:07 -070049sed -i 's/\_\_sec_group__/__sec_group__/g' /opt/config/integration-override.yaml
Gary Wued95ca72018-07-26 10:24:51 -070050sed -i 's/\_\_rancher_ip_addr__/__rancher_ip_addr__/g' /opt/config/integration-override.yaml
Gary Wu48a32942018-11-08 07:34:49 -080051sed -i 's/\_\_k8s_01_vm_ip__/__k8s_01_vm_ip__/g' /opt/config/integration-override.yaml
Gary Wu978171e2018-07-24 11:56:01 -070052sed -i 's/\_\_docker_proxy__/__docker_proxy__/g' /opt/config/integration-override.yaml
Gary Wu11c98742018-05-02 16:19:04 -070053cp /opt/config/integration-override.yaml /root
Gary Wu978171e2018-07-24 11:56:01 -070054cat /root/integration-override.yaml
Gary Wu14a6b302018-05-01 15:59:28 -070055
Gary Wu1ff56672018-01-17 20:51:45 -080056mkdir -p /etc/docker
Gary Wu3ad596f2018-02-08 07:16:37 -080057if [ ! -z "__docker_proxy__" ]; then
58 cat > /etc/docker/daemon.json <<EOF
Gary Wu1ff56672018-01-17 20:51:45 -080059{
Gary Wub8be70a2018-11-17 17:14:38 -080060 "mtu": __mtu__,
Gary Wu1ff56672018-01-17 20:51:45 -080061 "insecure-registries" : ["__docker_proxy__"]
62}
63EOF
Gary Wub8be70a2018-11-17 17:14:38 -080064else
65 cat > /etc/docker/daemon.json <<EOF
66{
67 "mtu": __mtu__
68}
69EOF
Gary Wu3ad596f2018-02-08 07:16:37 -080070fi
71if [ ! -z "__apt_proxy__" ]; then
72 cat > /etc/apt/apt.conf.d/30proxy<<EOF
Gary Wu1ff56672018-01-17 20:51:45 -080073Acquire::http { Proxy "http://__apt_proxy__"; };
74Acquire::https::Proxy "DIRECT";
75EOF
Gary Wu3ad596f2018-02-08 07:16:37 -080076fi
Gary Wu14a6b302018-05-01 15:59:28 -070077
Gary Wu675eb152018-10-26 10:50:27 -070078# workaround for OpenStack intermittent failure to change default apt mirrors
79sed -i 's|http://archive.ubuntu.com|http://nova.clouds.archive.ubuntu.com|g' /etc/apt/sources.list
80
Gary Wub0e36502018-10-16 11:01:07 -070081while ! hash jq &> /dev/null; do
82 apt-get -y update
Gary Wu675eb152018-10-26 10:50:27 -070083 apt-get -y install linux-image-extra-$(uname -r) apt-transport-https ca-certificates curl software-properties-common jq make nfs-kernel-server moreutils
Gary Wub0e36502018-10-16 11:01:07 -070084 sleep 10
85done
Gary Wu14a6b302018-05-01 15:59:28 -070086
Gary Wu48a32942018-11-08 07:34:49 -080087mkdir -p /dockerdata-nfs
Gary Wuc4749702018-06-26 14:27:41 -070088
Gary Wu48a32942018-11-08 07:34:49 -080089# use RAM disk for /dockerdata-nfs for testing
90if [ "__use_ramdisk__" = "true" ]; then
91 echo "tmpfs /dockerdata-nfs tmpfs noatime,size=75% 1 2" >> /etc/fstab
92 mount /dockerdata-nfs
93fi
Gary Wu14a6b302018-05-01 15:59:28 -070094# version control the persistence volume to see what's happening
Gary Wu14a6b302018-05-01 15:59:28 -070095chmod 777 /dockerdata-nfs/
96chown nobody:nogroup /dockerdata-nfs/
97cd /dockerdata-nfs/
98git init
Gary Wu11c98742018-05-02 16:19:04 -070099git config user.email "root@onap"
Gary Wu14a6b302018-05-01 15:59:28 -0700100git config user.name "root"
101git add -A
102git commit -m "initial commit"
103
104# export NFS mount
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700105echo "/dockerdata-nfs *(rw,fsid=1,async,no_root_squash,no_subtree_check)" | tee /etc/exports
Gary Wu14a6b302018-05-01 15:59:28 -0700106
107
108exportfs -a
109systemctl restart nfs-kernel-server
110
111cd ~
112
Gary Wu7a04b3d2018-08-15 12:31:46 -0700113# install docker __docker_version__
Gary Wub0e36502018-10-16 11:01:07 -0700114while ! hash docker &> /dev/null; do
115 curl -s https://releases.rancher.com/install-docker/__docker_version__.sh | sh
116 usermod -aG docker ubuntu
117 sleep 10
118done
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700119apt-mark hold docker-ce
Gary Wu14a6b302018-05-01 15:59:28 -0700120
Gary Wu7a04b3d2018-08-15 12:31:46 -0700121# install rancher __rancher_version__
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700122docker run --name rancher-server --restart unless-stopped -d -p 8080:8080 -e CATTLE_BOOTSTRAP_REQUIRED_IMAGE=__docker_proxy__/rancher/agent:v__rancher_agent_version__ __docker_proxy__/rancher/server:v__rancher_version__
Gary Wu14a6b302018-05-01 15:59:28 -0700123
Gary Wu7a04b3d2018-08-15 12:31:46 -0700124# install kubectl __kubectl_version__
125curl -s -LO https://storage.googleapis.com/kubernetes-release/release/v__kubectl_version__/bin/linux/amd64/kubectl
Gary Wu14a6b302018-05-01 15:59:28 -0700126chmod +x ./kubectl
127sudo mv ./kubectl /usr/local/bin/kubectl
128mkdir ~/.kube
129
Gary Wu7a04b3d2018-08-15 12:31:46 -0700130# install helm __helm_version__
Gary Wu895a4ac2018-10-31 12:30:54 -0700131mkdir -p helm
132pushd helm
Gary Wu7a04b3d2018-08-15 12:31:46 -0700133wget -q http://storage.googleapis.com/kubernetes-helm/helm-v__helm_version__-linux-amd64.tar.gz
134tar -zxvf helm-v__helm_version__-linux-amd64.tar.gz
Gary Wu895a4ac2018-10-31 12:30:54 -0700135sudo cp linux-amd64/helm /usr/local/bin/helm
136popd
Gary Wu14a6b302018-05-01 15:59:28 -0700137
Gary Wu895a4ac2018-10-31 12:30:54 -0700138mkdir -p rancher
139pushd rancher
Gary Wuad513722018-07-26 13:08:47 -0700140echo export RANCHER_IP=__rancher_private_ip_addr__ > api-keys-rc
Gary Wu14a6b302018-05-01 15:59:28 -0700141source api-keys-rc
142
Gary Wu14a6b302018-05-01 15:59:28 -0700143until curl -s -o projects.json -H "Accept: application/json" http://$RANCHER_IP:8080/v2-beta/projects; do
Gary Wub0e36502018-10-16 11:01:07 -0700144 sleep 30
Gary Wu14a6b302018-05-01 15:59:28 -0700145done
146OLD_PID=$(jq -r '.data[0].id' projects.json)
147
148curl -s -H "Accept: application/json" -H "Content-Type: application/json" -d '{"accountId":"1a1"}' http://$RANCHER_IP:8080/v2-beta/apikeys > apikeys.json
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700149echo export CATTLE_ACCESS_KEY=`jq -r '.publicValue' apikeys.json` >> api-keys-rc
150echo export CATTLE_SECRET_KEY=`jq -r '.secretValue' apikeys.json` >> api-keys-rc
Gary Wu14a6b302018-05-01 15:59:28 -0700151source api-keys-rc
152
153
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700154curl -u "${CATTLE_ACCESS_KEY}:${CATTLE_SECRET_KEY}" -X PUT -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"id":"registry.default","type":"activeSetting","baseType":"setting","name":"registry.default","activeValue":"__docker_proxy__","inDb":true,"source":"Database","value":"__docker_proxy__"}' http://$RANCHER_IP:8080/v2-beta/settings/registry.default
Gary Wu14a6b302018-05-01 15:59:28 -0700155
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700156curl -s -u "${CATTLE_ACCESS_KEY}:${CATTLE_SECRET_KEY}" -X DELETE -H 'Content-Type: application/json' "http://$RANCHER_IP:8080/v2-beta/projects/$OLD_PID"
Gary Wu14a6b302018-05-01 15:59:28 -0700157
158until [ ! -z "$TEMPLATE_ID" ] && [ "$TEMPLATE_ID" != "null" ]; do
159 sleep 5
160 curl -s -H "Accept: application/json" http://$RANCHER_IP:8080/v2-beta/projectTemplates?name=Kubernetes > projectTemplatesKubernetes.json
161 TEMPLATE_ID=$(jq -r '.data[0].id' projectTemplatesKubernetes.json)
162done
163
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700164
165curl -s -u "${CATTLE_ACCESS_KEY}:${CATTLE_SECRET_KEY}" \
166-X PUT \
167-H 'Accept: application/json' \
168-H 'Content-Type: application/json' \
Gary Wud1edb202019-03-22 13:09:59 -0700169-d '{"stacks":[{"type":"catalogTemplate", "answers":{"CONSTRAINT_TYPE":"required"}, "name":"kubernetes", "templateVersionId":"library:infra*k8s:58"}, {"type":"catalogTemplate", "name":"network-services", "templateId":"library:infra*network-services"}, {"type":"catalogTemplate", "name":"ipsec", "templateId":"library:infra*ipsec", "answers":{"MTU":"__mtu__"}}, {"type":"catalogTemplate", "name":"healthcheck", "templateId":"library:infra*healthcheck"}]}' \
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700170"http://$RANCHER_IP:8080/v2-beta/projecttemplates/$TEMPLATE_ID"
171
172curl -s -u "${CATTLE_ACCESS_KEY}:${CATTLE_SECRET_KEY}" -X POST -H 'Content-Type: application/json' -d '{ "name":"oom", "projectTemplateId":"'$TEMPLATE_ID'" }' "http://$RANCHER_IP:8080/v2-beta/projects" > project.json
Gary Wu14a6b302018-05-01 15:59:28 -0700173PID=`jq -r '.id' project.json`
174echo export RANCHER_URL=http://$RANCHER_IP:8080/v1/projects/$PID >> api-keys-rc
175source api-keys-rc
176
177until [ $(jq -r '.state' project.json) == "active" ]; do
178 sleep 5
179 curl -s -H "Accept: application/json" http://$RANCHER_IP:8080/v1/projects/$PID > project.json
180done
181
182
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700183curl -s -u $CATTLE_ACCESS_KEY:$CATTLE_SECRET_KEY -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"name":"docker-proxy", "serverAddress":"__docker_proxy__"}' $RANCHER_URL/registries > registry.json
Gary Wu14a6b302018-05-01 15:59:28 -0700184RID=$(jq -r '.id' registry.json)
185
186
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700187curl -u "${CATTLE_ACCESS_KEY}:${CATTLE_SECRET_KEY}" -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"publicValue":"docker", "registryId":"'$RID'", "secretValue":"docker", "type":"registryCredential"}' "http://$RANCHER_IP:8080/v2-beta/projects/$PID/registrycredential"
Gary Wu14a6b302018-05-01 15:59:28 -0700188
189
190
191TID=$(curl -s -X POST -H "Accept: application/json" -H "Content-Type: application/json" http://$RANCHER_IP:8080/v1/projects/$PID/registrationTokens | jq -r '.id')
192touch token.json
193while [ $(jq -r .command token.json | wc -c) -lt 10 ]; do
194 sleep 5
195 curl -s -X GET -H "Accept: application/json" http://$RANCHER_IP:8080/v1/projects/$PID/registrationToken/$TID > token.json
196done
197jq -r .command token.json > rancher_agent_cmd.sh
198chmod +x rancher_agent_cmd.sh
199cp rancher_agent_cmd.sh /dockerdata-nfs
Gary Wu895a4ac2018-10-31 12:30:54 -0700200popd
201
Gary Wu11c98742018-05-02 16:19:04 -0700202cd /dockerdata-nfs
203git add -A
204git commit -a -m "Add rancher agent command file"
205cd ~
Gary Wu14a6b302018-05-01 15:59:28 -0700206
Gary Wu89f67232018-11-01 13:45:31 -0700207
208# Uncomment this section to run orchestration plane on the Rancher VM
209#
210# cp /dockerdata-nfs/rancher_agent_cmd.sh .
211# sed -i "s/docker run/docker run -e CATTLE_HOST_LABELS='orchestration=true' -e CATTLE_AGENT_IP=${HOST_IP}/g" rancher_agent_cmd.sh
212# source rancher_agent_cmd.sh
Gary Wu895a4ac2018-10-31 12:30:54 -0700213
214
Gary Wu14a6b302018-05-01 15:59:28 -0700215
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700216KUBETOKEN=$(echo -n 'Basic '$(echo -n "$CATTLE_ACCESS_KEY:$CATTLE_SECRET_KEY" | base64 -w 0) | base64 -w 0)
Gary Wu14a6b302018-05-01 15:59:28 -0700217
Gary Wue7f33612018-11-02 13:10:06 -0700218NAMESPACE=onap
219
Gary Wu14a6b302018-05-01 15:59:28 -0700220# create .kube/config
221cat > ~/.kube/config <<EOF
222apiVersion: v1
223kind: Config
224clusters:
225- cluster:
226 api-version: v1
227 insecure-skip-tls-verify: true
Gary Wuad513722018-07-26 13:08:47 -0700228 server: "https://__rancher_ip_addr__:8080/r/projects/$PID/kubernetes:6443"
Gary Wu14a6b302018-05-01 15:59:28 -0700229 name: "oom"
230contexts:
231- context:
232 cluster: "oom"
Gary Wue7f33612018-11-02 13:10:06 -0700233 namespace: "$NAMESPACE"
Gary Wu14a6b302018-05-01 15:59:28 -0700234 user: "oom"
235 name: "oom"
236current-context: "oom"
237users:
238- name: "oom"
239 user:
240 token: "$KUBETOKEN"
241EOF
242
243export KUBECONFIG=/root/.kube/config
244kubectl config view
245
Gary Wu895a4ac2018-10-31 12:30:54 -0700246
247
Gary Wub0e36502018-10-16 11:01:07 -0700248# Enable auto-completion for kubectl
249echo "source <(kubectl completion bash)" >> ~/.bashrc
250
251
Gary Wu14a6b302018-05-01 15:59:28 -0700252# wait for kubernetes to initialze
Gary Wub0e36502018-10-16 11:01:07 -0700253sleep 3m
Gary Wu14a6b302018-05-01 15:59:28 -0700254until [ $(kubectl get pods --namespace kube-system | tail -n +2 | grep -c Running) -ge 6 ]; do
Gary Wub0e36502018-10-16 11:01:07 -0700255 sleep 1m
Gary Wu14a6b302018-05-01 15:59:28 -0700256done
257
258
259# Install using OOM
260export HOME=/root
Gary Wu978171e2018-07-24 11:56:01 -0700261mkdir -p ~/.ssh
262cp ~ubuntu/.ssh/authorized_keys ~/.ssh
263
Gary Wu14a6b302018-05-01 15:59:28 -0700264
Gary Wu0dfbea32018-05-12 09:27:44 -0700265# update and initialize git
266apt-get -y install git
267git config --global user.email root@rancher
268git config --global user.name root@rancher
269git config --global log.decorate auto
270
Gary Wu14a6b302018-05-01 15:59:28 -0700271# Clone OOM:
272cd ~
Gary Wu87aa8b52018-08-09 08:10:24 -0700273git clone -b __oom_gerrit_branch__ https://gerrit.onap.org/r/oom
Gary Wu14a6b302018-05-01 15:59:28 -0700274cd oom
Gary Wu6842fa32018-11-20 10:29:22 -0800275if [ ! -z "__oom_gerrit_refspec__" ]; then
276 git fetch https://gerrit.onap.org/r/oom __oom_gerrit_refspec__
277 git checkout FETCH_HEAD
278fi
Gary Wu0dfbea32018-05-12 09:27:44 -0700279git checkout -b workarounds
Gary Wu87aa8b52018-08-09 08:10:24 -0700280git log -1
Gary Wu14a6b302018-05-01 15:59:28 -0700281
Gary Wu81836d22018-06-22 13:48:50 -0700282# Clone integration
283cd ~
Gary Wu87aa8b52018-08-09 08:10:24 -0700284git clone -b __integration_gerrit_branch__ https://gerrit.onap.org/r/integration
Gary Wu81836d22018-06-22 13:48:50 -0700285cd integration
Gary Wu6842fa32018-11-20 10:29:22 -0800286if [ ! -z "__integration_gerrit_refspec__" ]; then
287 git fetch https://gerrit.onap.org/r/integration __integration_gerrit_refspec__
288 git checkout FETCH_HEAD
289fi
Gary Wu81836d22018-06-22 13:48:50 -0700290
Gary Wu48a32942018-11-08 07:34:49 -0800291
Gary Wu87aa8b52018-08-09 08:10:24 -0700292if [ ! -z "__docker_manifest__" ]; then
293 cd version-manifest/src/main/scripts
294 ./update-oom-image-versions.sh ../resources/__docker_manifest__ ~/oom/
295fi
Gary Wu81836d22018-06-22 13:48:50 -0700296
297cd ~/oom
298git diff
Gary Wu87aa8b52018-08-09 08:10:24 -0700299git commit -a -m "apply manifest versions"
Gary Wu4a69d512018-12-10 11:31:24 -0800300
301cd ~/oom
302# workaround to change onap portal cookie domain
303sed -i "s/^cookie_domain.*=.*/cookie_domain = __portal_hostname__/g" ./kubernetes/portal/charts/portal-app/resources/config/deliveries/properties/ONAPPORTAL/system.properties
304sed -i "s/^cookie_domain.*=.*/cookie_domain = __portal_hostname__/g" ./kubernetes/portal/charts/portal-sdk/resources/config/deliveries/properties/ONAPPORTALSDK/system.properties
305git diff
306git commit -a -m "set portal cookie domain"
307
Gary Wu87aa8b52018-08-09 08:10:24 -0700308git tag -a "deploy0" -m "initial deployment"
Gary Wu81836d22018-06-22 13:48:50 -0700309
310
Gary Wu14a6b302018-05-01 15:59:28 -0700311# Run ONAP:
312cd ~/oom/kubernetes/
Gary Wu14a6b302018-05-01 15:59:28 -0700313helm init --client-only
314helm init --upgrade
315helm serve &
Gary Wub0e36502018-10-16 11:01:07 -0700316sleep 10
Gary Wu14a6b302018-05-01 15:59:28 -0700317helm repo add local http://127.0.0.1:8879
318helm repo list
319make all
320helm search -l | grep local
Gary Wu48a32942018-11-08 07:34:49 -0800321
322# install helm deploy plugin
323rsync -avt ~/oom/kubernetes/helm/plugins ~/.helm/
324# temporary workaround to throttle the helm deploy to alleviate startup disk contention issues
325if [ ! -z "__helm_deploy_delay__" ]; then
326 sed -i "/\^enabled:/a\ echo sleep __helm_deploy_delay__\n sleep __helm_deploy_delay__" ~/.helm/plugins/deploy/deploy.sh
327fi
328
329helm deploy dev local/onap -f ~/oom/kubernetes/onap/resources/environments/public-cloud.yaml -f ~/integration-override.yaml --namespace $NAMESPACE --verbose
330
331# re-install original helm deploy plugin
332rsync -avt ~/oom/kubernetes/helm/plugins ~/.helm/
333
Gary Wu389aa902018-09-17 13:53:54 -0700334helm list
Gary Wu14a6b302018-05-01 15:59:28 -0700335
336
Gary Wu48a32942018-11-08 07:34:49 -0800337
Gary Wu14a6b302018-05-01 15:59:28 -0700338# Check ONAP status:
Gary Wub0e36502018-10-16 11:01:07 -0700339sleep 10
Gary Wu14a6b302018-05-01 15:59:28 -0700340kubectl get pods --all-namespaces
Gary Wub0e36502018-10-16 11:01:07 -0700341kubectl get nodes
342kubectl top nodes