Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fix field path in ODL mount volume (sdnc-statefulset)

...

#PurposeCommand and Examples
1Get the shared templates code git fetch command

Go to gerrit change 25467

Click Download downward arrow, and click the click board in the same line as Checkout to get the git commands (which includes the git fetch and checkout commands).

Expand
titleAn example of the git commands with patch set 19

git fetch https://gerrit.onap.org/r/oom refs/changes/67/25467/19 && git checkout FETCH_HEAD

2Fetch the shared template to the oom directory on the Kubernetes node VM

cd {$OOM}

run the git commands got from step 1

3Link the new startODL.sh

vi kubernetes/sdnc/templates/sdnc-statefulset.yaml

do the following changes:

PurposeChanges
Info

Skip this change if you have skipped the get new startODL.sh script section

mount point for new startODL.sh script

FieldAdded Value

.spec.template.spec.containers.volumeMounts

(of container sdnc-controller-container)

- mountPath: /opt/onap/sdnc/bin/startODL.sh
name: sdnc-startodl

 .spec.template..spec.volumes

- name: sdnc-startodl
hostPath:
path: /home/ubuntu/cluster/script/startODL.sh

mount point for ODL deploy directory

(ODL automatically install bundles/pacakges under its deploy directory, this mount point provides capability to drop a bundle/package in the Kubernetes node at /home/ubuntu/cluster/deploy directory and it will automativally be installed in the sdnc pods.)

FieldAdded Value

.spec.template.spec.containers.volumeMounts

(of container sdnc-controller-container)

- mountPath: /opt/opendaylight/current/deploy
name: sdnc-deploy

 .spec.template.spec.volumes

- name: sdnc-deploy
hostPath:
path: /home/ubuntu/cluster/deploy

4Enable cluster configuration

vi kubernetes/sdnc/values.yaml

change the following fields with the new value:

fieldnew valueold value
enableODLClustertruefalse
numberOfODLReplicas31
numberOfDbReplicas21

...