Changes between Version 28 and Version 29 of Tutorials/Cloud/ONAP
- Timestamp:
- May 11, 2020, 1:26:51 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials/Cloud/ONAP
v28 v29 31 31 ==== Imaging the nodes ==== 32 32 33 {{{ 33 {{{#!shell 34 34 onaptutorial-min.rb -g group-nogroup 35 35 }}} 36 36 37 37 will load controller and worker images (latest-onap-control.ndz and latest-onap-worker.ndz) on the two nodes in the group (controller on the first and worker on the second node in the group) and turn them on: 38 {{{ 38 {{{#!shell-session 39 39 msherman@console:~$ onaptutorial-min.rb -g group-black 40 40 Imaging: … … 88 88 In order to create the Kubernetes cluster that will run ONAP, download and execute the cluster creation script on the console of the domain where you have node (please note that you will need to use corresponding node names in the script arguments) 89 89 90 {{{ 90 {{{#!shell-session 91 91 mkdir onap-test && cd onap-test 92 92 wget https://wiki.cosmos-lab.org/raw-attachment/wiki/tutorials/orchestration-example/create-kube-cluster.sh … … 99 99 100 100 create-kube-cluster.sh 101 {{{ 101 {{{#!shell 102 102 #!/bin/bash 103 103 … … 241 241 1. Set the context of kubernetes to onap by default: 242 242 243 {{{ 243 {{{#!shell 244 244 kubectl config set-context --current --namespace=onap 245 245 }}} … … 247 247 2. Verify the Kubernetes cluster: 248 248 \\ 249 {{{ 249 {{{#!shell 250 250 kubectl get nodes -o=wide 251 251 }}} … … 253 253 3. Initialize Kubernetes Cluster for use by Helm 254 254 255 {{{ 255 {{{#!shell 256 256 kubectl -n kube-system create serviceaccount tiller 257 257 kubectl create clusterrolebinding tiller --clusterrole=cluster-admin --serviceaccount=kube-system:tiller … … 262 262 4. Set only the required ONAP component to true 263 263 264 {{{ 264 {{{#!shell 265 265 cd overrides/ 266 266 //edit the onap-all.yaml file and set the ONAP components to false … … 270 270 in our example mariadb and portal are turned on: 271 271 272 {{{ 272 {{{#!shell 273 273 # 274 274 # Licensed under the Apache License, Version 2.0 (the "License"); … … 354 354 5. Start helm server and add local helm repository 355 355 356 {{{ 356 {{{#!shell 357 357 // start server 358 358 helm serve & … … 365 365 6. Make onap helm charts available in local helm repository 366 366 367 {{{ 367 {{{#!shell 368 368 cd ~/oom/kubernetes 369 369 make all; make onap … … 371 371 372 372 The output should look like this: 373 {{{ 373 {{{#!shell-session 374 374 root@node:make all; make onap 375 375 [common] … … 434 434 7. Deploy ONAP 435 435 436 {{{ 436 {{{#!shell 437 437 helm deploy demo local/onap --namespace onap -f ~/overrides/onap-all.yaml 438 438 }}} 439 439 440 {{{ 440 {{{#!shell-session 441 441 root@node:~/oom/kubernetes# helm deploy demo local/onap --namespace onap -f ~/overrides/onap-all.yaml 442 442 fetching local/onap … … 448 448 8. Verify the deploy 449 449 450 {{{ 450 {{{#!shell 451 451 helm ls 452 452 }}} 453 453 454 454 resulting in: 455 {{{ 455 {{{#!shell-session 456 456 NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE 457 457 demo 1 Sun Oct 20 02:14:55 2019 DEPLOYED onap-5.0.0 El Alto onap