Gary Wu | 1ff5667 | 2018-01-17 20:51:45 -0800 | [diff] [blame] | 1 | #!/bin/bash -x |
Gary Wu | a3fb86f | 2018-06-04 16:23:54 -0700 | [diff] [blame] | 2 | # |
| 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 Wu | 1ff5667 | 2018-01-17 20:51:45 -0800 | [diff] [blame] | 12 | printenv |
| 13 | |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 14 | mkdir -p /opt/config |
| 15 | echo "__rancher_ip_addr__" > /opt/config/rancher_ip_addr.txt |
| 16 | echo "__k8s_vm_ips__" > /opt/config/k8s_vm_ips.txt |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 17 | echo "__k8s_private_ips__" > /opt/config/k8s_private_ips.txt |
Gary Wu | 978171e | 2018-07-24 11:56:01 -0700 | [diff] [blame] | 18 | echo "__public_net_id__" > /opt/config/public_net_id.txt |
| 19 | echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 20 | echo "__oam_network_id__" > /opt/config/oam_network_id.txt |
| 21 | echo "__oam_subnet_id__" > /opt/config/oam_subnet_id.txt |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 22 | echo "__integration_gerrit_branch__" > /opt/config/integration_gerrit_branch.txt |
| 23 | echo "__integration_gerrit_refspec__" > /opt/config/integration_gerrit_refspec.txt |
| 24 | echo "__oom_gerrit_branch__" > /opt/config/oom_gerrit_branch.txt |
| 25 | echo "__oom_gerrit_refspec__" > /opt/config/oom_gerrit_refspec.txt |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 26 | echo "__docker_manifest__" > /opt/config/docker_manifest.txt |
Gary Wu | 978171e | 2018-07-24 11:56:01 -0700 | [diff] [blame] | 27 | echo "__docker_proxy__" > /opt/config/docker_proxy.txt |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 28 | echo "__docker_version__" > /opt/config/docker_version.txt |
| 29 | echo "__rancher_version__" > /opt/config/rancher_version.txt |
| 30 | echo "__rancher_agent_version__" > /opt/config/rancher_agent_version.txt |
| 31 | echo "__kubectl_version__" > /opt/config/kubectl_version.txt |
| 32 | echo "__helm_version__" > /opt/config/helm_version.txt |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 33 | |
| 34 | cat <<EOF > /opt/config/integration-override.yaml |
| 35 | __integration_override_yaml__ |
| 36 | EOF |
Gary Wu | 978171e | 2018-07-24 11:56:01 -0700 | [diff] [blame] | 37 | sed -i 's/\_\_public_net_id__/__public_net_id__/g' /opt/config/integration-override.yaml |
| 38 | sed -i 's|\_\_oam_network_cidr__|__oam_network_cidr__|g' /opt/config/integration-override.yaml |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 39 | sed -i 's/\_\_oam_network_id__/__oam_network_id__/g' /opt/config/integration-override.yaml |
| 40 | sed -i 's/\_\_oam_subnet_id__/__oam_subnet_id__/g' /opt/config/integration-override.yaml |
Gary Wu | ed95ca7 | 2018-07-26 10:24:51 -0700 | [diff] [blame] | 41 | sed -i 's/\_\_rancher_ip_addr__/__rancher_ip_addr__/g' /opt/config/integration-override.yaml |
Gary Wu | 0a67162 | 2018-05-14 12:59:03 -0700 | [diff] [blame] | 42 | sed -i 's/\_\_k8s_1_vm_ip__/__k8s_1_vm_ip__/g' /opt/config/integration-override.yaml |
Gary Wu | 978171e | 2018-07-24 11:56:01 -0700 | [diff] [blame] | 43 | sed -i 's/\_\_docker_proxy__/__docker_proxy__/g' /opt/config/integration-override.yaml |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 44 | cp /opt/config/integration-override.yaml /root |
Gary Wu | 978171e | 2018-07-24 11:56:01 -0700 | [diff] [blame] | 45 | cat /root/integration-override.yaml |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 46 | |
Gary Wu | 1ff5667 | 2018-01-17 20:51:45 -0800 | [diff] [blame] | 47 | echo `hostname -I` `hostname` >> /etc/hosts |
| 48 | mkdir -p /etc/docker |
Gary Wu | 3ad596f | 2018-02-08 07:16:37 -0800 | [diff] [blame] | 49 | if [ ! -z "__docker_proxy__" ]; then |
| 50 | cat > /etc/docker/daemon.json <<EOF |
Gary Wu | 1ff5667 | 2018-01-17 20:51:45 -0800 | [diff] [blame] | 51 | { |
| 52 | "insecure-registries" : ["__docker_proxy__"] |
| 53 | } |
| 54 | EOF |
Gary Wu | 3ad596f | 2018-02-08 07:16:37 -0800 | [diff] [blame] | 55 | fi |
| 56 | if [ ! -z "__apt_proxy__" ]; then |
| 57 | cat > /etc/apt/apt.conf.d/30proxy<<EOF |
Gary Wu | 1ff5667 | 2018-01-17 20:51:45 -0800 | [diff] [blame] | 58 | Acquire::http { Proxy "http://__apt_proxy__"; }; |
| 59 | Acquire::https::Proxy "DIRECT"; |
| 60 | EOF |
Gary Wu | 3ad596f | 2018-02-08 07:16:37 -0800 | [diff] [blame] | 61 | fi |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 62 | |
Gary Wu | b0e3650 | 2018-10-16 11:01:07 -0700 | [diff] [blame] | 63 | while ! hash jq &> /dev/null; do |
| 64 | apt-get -y update |
| 65 | apt-get -y install linux-image-extra-$(uname -r) jq make nfs-kernel-server moreutils |
| 66 | sleep 10 |
| 67 | done |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 68 | |
Gary Wu | c474970 | 2018-06-26 14:27:41 -0700 | [diff] [blame] | 69 | # use RAM disk for /dockerdata-nfs for testing |
Gary Wu | 1ac4883 | 2018-10-18 16:08:19 -0700 | [diff] [blame] | 70 | echo "tmpfs /dockerdata-nfs tmpfs noatime,size=75% 1 2" >> /etc/fstab |
Gary Wu | ece5858 | 2018-10-01 15:15:17 -0700 | [diff] [blame] | 71 | mkdir -pv /dockerdata-nfs |
Gary Wu | 1ac4883 | 2018-10-18 16:08:19 -0700 | [diff] [blame] | 72 | mount /dockerdata-nfs |
Gary Wu | c474970 | 2018-06-26 14:27:41 -0700 | [diff] [blame] | 73 | |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 74 | # version control the persistence volume to see what's happening |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 75 | chmod 777 /dockerdata-nfs/ |
| 76 | chown nobody:nogroup /dockerdata-nfs/ |
| 77 | cd /dockerdata-nfs/ |
| 78 | git init |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 79 | git config user.email "root@onap" |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 80 | git config user.name "root" |
| 81 | git add -A |
| 82 | git commit -m "initial commit" |
| 83 | |
| 84 | # export NFS mount |
| 85 | NFS_EXP="" |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 86 | for K8S_VM_IP in $(tr -d ',[]' < /opt/config/k8s_private_ips.txt); do |
Gary Wu | 1ac4883 | 2018-10-18 16:08:19 -0700 | [diff] [blame] | 87 | NFS_EXP+="$K8S_VM_IP(rw,fsid=1,async,no_root_squash,no_subtree_check) " |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 88 | done |
| 89 | echo "/dockerdata-nfs $NFS_EXP" | tee /etc/exports |
| 90 | |
| 91 | |
| 92 | exportfs -a |
| 93 | systemctl restart nfs-kernel-server |
| 94 | |
| 95 | cd ~ |
| 96 | |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 97 | # install docker __docker_version__ |
Gary Wu | b0e3650 | 2018-10-16 11:01:07 -0700 | [diff] [blame] | 98 | while ! hash docker &> /dev/null; do |
| 99 | curl -s https://releases.rancher.com/install-docker/__docker_version__.sh | sh |
| 100 | usermod -aG docker ubuntu |
| 101 | sleep 10 |
| 102 | done |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 103 | |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 104 | # install rancher __rancher_version__ |
| 105 | docker run --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 Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 106 | |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 107 | # install kubectl __kubectl_version__ |
| 108 | curl -s -LO https://storage.googleapis.com/kubernetes-release/release/v__kubectl_version__/bin/linux/amd64/kubectl |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 109 | chmod +x ./kubectl |
| 110 | sudo mv ./kubectl /usr/local/bin/kubectl |
| 111 | mkdir ~/.kube |
| 112 | |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 113 | # install helm __helm_version__ |
| 114 | wget -q http://storage.googleapis.com/kubernetes-helm/helm-v__helm_version__-linux-amd64.tar.gz |
| 115 | tar -zxvf helm-v__helm_version__-linux-amd64.tar.gz |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 116 | sudo mv linux-amd64/helm /usr/local/bin/helm |
| 117 | |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 118 | echo export RANCHER_IP=__rancher_private_ip_addr__ > api-keys-rc |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 119 | source api-keys-rc |
| 120 | |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 121 | until curl -s -o projects.json -H "Accept: application/json" http://$RANCHER_IP:8080/v2-beta/projects; do |
Gary Wu | b0e3650 | 2018-10-16 11:01:07 -0700 | [diff] [blame] | 122 | sleep 30 |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 123 | done |
| 124 | OLD_PID=$(jq -r '.data[0].id' projects.json) |
| 125 | |
| 126 | curl -s -H "Accept: application/json" -H "Content-Type: application/json" -d '{"accountId":"1a1"}' http://$RANCHER_IP:8080/v2-beta/apikeys > apikeys.json |
| 127 | echo export RANCHER_ACCESS_KEY=`jq -r '.publicValue' apikeys.json` >> api-keys-rc |
| 128 | echo export RANCHER_SECRET_KEY=`jq -r '.secretValue' apikeys.json` >> api-keys-rc |
| 129 | source api-keys-rc |
| 130 | |
| 131 | |
| 132 | curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_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 |
| 133 | |
| 134 | curl -s -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" -X DELETE -H 'Content-Type: application/json' "http://$RANCHER_IP:8080/v2-beta/projects/$OLD_PID" |
| 135 | |
| 136 | until [ ! -z "$TEMPLATE_ID" ] && [ "$TEMPLATE_ID" != "null" ]; do |
| 137 | sleep 5 |
| 138 | curl -s -H "Accept: application/json" http://$RANCHER_IP:8080/v2-beta/projectTemplates?name=Kubernetes > projectTemplatesKubernetes.json |
| 139 | TEMPLATE_ID=$(jq -r '.data[0].id' projectTemplatesKubernetes.json) |
| 140 | done |
| 141 | |
| 142 | curl -s -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" -X POST -H 'Content-Type: application/json' -d '{ "name":"oom", "projectTemplateId":"'$TEMPLATE_ID'" }' "http://$RANCHER_IP:8080/v2-beta/projects" > project.json |
| 143 | PID=`jq -r '.id' project.json` |
| 144 | echo export RANCHER_URL=http://$RANCHER_IP:8080/v1/projects/$PID >> api-keys-rc |
| 145 | source api-keys-rc |
| 146 | |
| 147 | until [ $(jq -r '.state' project.json) == "active" ]; do |
| 148 | sleep 5 |
| 149 | curl -s -H "Accept: application/json" http://$RANCHER_IP:8080/v1/projects/$PID > project.json |
| 150 | done |
| 151 | |
| 152 | |
| 153 | curl -s -u $RANCHER_ACCESS_KEY:$RANCHER_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 |
| 154 | RID=$(jq -r '.id' registry.json) |
| 155 | |
| 156 | |
| 157 | curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_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" |
| 158 | |
| 159 | |
| 160 | |
| 161 | TID=$(curl -s -X POST -H "Accept: application/json" -H "Content-Type: application/json" http://$RANCHER_IP:8080/v1/projects/$PID/registrationTokens | jq -r '.id') |
| 162 | touch token.json |
| 163 | while [ $(jq -r .command token.json | wc -c) -lt 10 ]; do |
| 164 | sleep 5 |
| 165 | curl -s -X GET -H "Accept: application/json" http://$RANCHER_IP:8080/v1/projects/$PID/registrationToken/$TID > token.json |
| 166 | done |
| 167 | jq -r .command token.json > rancher_agent_cmd.sh |
| 168 | chmod +x rancher_agent_cmd.sh |
| 169 | cp rancher_agent_cmd.sh /dockerdata-nfs |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 170 | cd /dockerdata-nfs |
| 171 | git add -A |
| 172 | git commit -a -m "Add rancher agent command file" |
| 173 | cd ~ |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 174 | |
| 175 | |
| 176 | KUBETOKEN=$(echo -n 'Basic '$(echo -n "$RANCHER_ACCESS_KEY:$RANCHER_SECRET_KEY" | base64 -w 0) | base64 -w 0) |
| 177 | |
| 178 | # create .kube/config |
| 179 | cat > ~/.kube/config <<EOF |
| 180 | apiVersion: v1 |
| 181 | kind: Config |
| 182 | clusters: |
| 183 | - cluster: |
| 184 | api-version: v1 |
| 185 | insecure-skip-tls-verify: true |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 186 | server: "https://__rancher_ip_addr__:8080/r/projects/$PID/kubernetes:6443" |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 187 | name: "oom" |
| 188 | contexts: |
| 189 | - context: |
| 190 | cluster: "oom" |
| 191 | user: "oom" |
| 192 | name: "oom" |
| 193 | current-context: "oom" |
| 194 | users: |
| 195 | - name: "oom" |
| 196 | user: |
| 197 | token: "$KUBETOKEN" |
| 198 | EOF |
| 199 | |
| 200 | export KUBECONFIG=/root/.kube/config |
| 201 | kubectl config view |
| 202 | |
Gary Wu | b0e3650 | 2018-10-16 11:01:07 -0700 | [diff] [blame] | 203 | # Enable auto-completion for kubectl |
| 204 | echo "source <(kubectl completion bash)" >> ~/.bashrc |
| 205 | |
| 206 | |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 207 | # wait for kubernetes to initialze |
Gary Wu | b0e3650 | 2018-10-16 11:01:07 -0700 | [diff] [blame] | 208 | sleep 3m |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 209 | until [ $(kubectl get pods --namespace kube-system | tail -n +2 | grep -c Running) -ge 6 ]; do |
Gary Wu | b0e3650 | 2018-10-16 11:01:07 -0700 | [diff] [blame] | 210 | sleep 1m |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 211 | done |
| 212 | |
| 213 | |
| 214 | # Install using OOM |
| 215 | export HOME=/root |
Gary Wu | 978171e | 2018-07-24 11:56:01 -0700 | [diff] [blame] | 216 | mkdir -p ~/.ssh |
| 217 | cp ~ubuntu/.ssh/authorized_keys ~/.ssh |
| 218 | |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 219 | |
Gary Wu | 0dfbea3 | 2018-05-12 09:27:44 -0700 | [diff] [blame] | 220 | # update and initialize git |
| 221 | apt-get -y install git |
| 222 | git config --global user.email root@rancher |
| 223 | git config --global user.name root@rancher |
| 224 | git config --global log.decorate auto |
| 225 | |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 226 | # Clone OOM: |
| 227 | cd ~ |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 228 | git clone -b __oom_gerrit_branch__ https://gerrit.onap.org/r/oom |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 229 | cd oom |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 230 | git fetch https://gerrit.onap.org/r/oom __oom_gerrit_refspec__ |
| 231 | git checkout FETCH_HEAD |
Gary Wu | 0dfbea3 | 2018-05-12 09:27:44 -0700 | [diff] [blame] | 232 | git checkout -b workarounds |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 233 | git log -1 |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 234 | |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 235 | # Clone integration |
| 236 | cd ~ |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 237 | git clone -b __integration_gerrit_branch__ https://gerrit.onap.org/r/integration |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 238 | cd integration |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 239 | git fetch https://gerrit.onap.org/r/integration __integration_gerrit_refspec__ |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 240 | git checkout FETCH_HEAD |
| 241 | |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 242 | if [ ! -z "__docker_manifest__" ]; then |
| 243 | cd version-manifest/src/main/scripts |
| 244 | ./update-oom-image-versions.sh ../resources/__docker_manifest__ ~/oom/ |
| 245 | fi |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 246 | |
| 247 | cd ~/oom |
| 248 | git diff |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 249 | git commit -a -m "apply manifest versions" |
| 250 | git tag -a "deploy0" -m "initial deployment" |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 251 | |
| 252 | |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 253 | # Run ONAP: |
| 254 | cd ~/oom/kubernetes/ |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 255 | helm init --client-only |
| 256 | helm init --upgrade |
| 257 | helm serve & |
Gary Wu | b0e3650 | 2018-10-16 11:01:07 -0700 | [diff] [blame] | 258 | sleep 10 |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 259 | helm repo add local http://127.0.0.1:8879 |
| 260 | helm repo list |
| 261 | make all |
Gary Wu | 389aa90 | 2018-09-17 13:53:54 -0700 | [diff] [blame] | 262 | rsync -avt ~/oom/kubernetes/helm/plugins ~/.helm/ |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 263 | helm search -l | grep local |
Gary Wu | a8d6b12 | 2018-10-17 11:33:24 -0700 | [diff] [blame] | 264 | helm deploy dev local/onap -f ~/oom/kubernetes/onap/resources/environments/public-cloud.yaml -f ~/integration-override.yaml --namespace onap | tee ~/helm-deploy.log |
Gary Wu | 389aa90 | 2018-09-17 13:53:54 -0700 | [diff] [blame] | 265 | helm list |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 266 | |
| 267 | |
| 268 | # Check ONAP status: |
Gary Wu | b0e3650 | 2018-10-16 11:01:07 -0700 | [diff] [blame] | 269 | sleep 10 |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 270 | kubectl get pods --all-namespaces |
Gary Wu | b0e3650 | 2018-10-16 11:01:07 -0700 | [diff] [blame] | 271 | kubectl get nodes |
| 272 | kubectl top nodes |