Changes between Version 28 and Version 29 of Tutorials/Cloud/ONAP


Ignore:
Timestamp:
May 11, 2020, 1:26:51 AM (19 months ago)
Author:
msherman
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/Cloud/ONAP

    v28 v29  
    3131==== Imaging the nodes ====
    3232
    33 {{{
     33{{{#!shell
    3434  onaptutorial-min.rb -g group-nogroup
    3535}}}
    3636
    3737will 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
    3939msherman@console:~$ onaptutorial-min.rb -g group-black
    4040Imaging:
     
    8888In 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)
    8989
    90 {{{
     90{{{#!shell-session
    9191mkdir onap-test && cd onap-test
    9292wget https://wiki.cosmos-lab.org/raw-attachment/wiki/tutorials/orchestration-example/create-kube-cluster.sh
     
    9999
    100100create-kube-cluster.sh
    101 {{{
     101{{{#!shell
    102102#!/bin/bash
    103103
     
    2412411. Set the context of kubernetes to onap by default:
    242242
    243 {{{
     243{{{#!shell
    244244kubectl config set-context --current --namespace=onap
    245245}}}
     
    2472472. Verify the Kubernetes cluster:
    248248\\
    249 {{{
     249{{{#!shell
    250250kubectl get nodes -o=wide
    251251}}}
     
    2532533. Initialize Kubernetes Cluster for use by Helm
    254254
    255 {{{
     255{{{#!shell
    256256kubectl -n kube-system create serviceaccount tiller
    257257kubectl create clusterrolebinding tiller --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
     
    2622624. Set only the required ONAP component to true
    263263
    264 {{{
     264{{{#!shell
    265265cd overrides/
    266266//edit the onap-all.yaml  file and set the ONAP components to false
     
    270270in our example mariadb and portal are turned on:
    271271
    272 {{{
     272{{{#!shell
    273273#
    274274# Licensed under the Apache License, Version 2.0 (the "License");
     
    3543545. Start helm server and add local helm repository
    355355
    356 {{{
     356{{{#!shell
    357357// start server
    358358helm serve &
     
    3653656. Make onap helm charts available in local helm repository
    366366
    367 {{{
     367{{{#!shell
    368368cd ~/oom/kubernetes
    369369make all; make onap
     
    371371
    372372The output should look like this:
    373 {{{
     373{{{#!shell-session
    374374root@node:make all; make onap
    375375[common]
     
    4344347. Deploy ONAP
    435435
    436 {{{
     436{{{#!shell
    437437helm deploy demo local/onap --namespace onap -f ~/overrides/onap-all.yaml
    438438}}}
    439439
    440 {{{
     440{{{#!shell-session
    441441root@node:~/oom/kubernetes# helm deploy demo local/onap --namespace onap -f ~/overrides/onap-all.yaml
    442442fetching local/onap
     
    4484488. Verify the deploy
    449449
    450 {{{
     450{{{#!shell
    451451helm ls
    452452}}}
    453453
    454454resulting in:
    455 {{{
     455{{{#!shell-session
    456456NAME                    REVISION        UPDATED                         STATUS          CHART                   APP VERSION     NAMESPACE
    457457demo                    1               Sun Oct 20 02:14:55 2019        DEPLOYED        onap-5.0.0              El Alto         onap