...
Code Block |
---|
wget https://onap.readthedocs.io/en/latest/_downloads/604dc45241b03eac1c92b22e0b32b5f3/slave_nfs_node.sh
chmod +x slave_nfs_node.sh
sudo ./slave_nfs_node.sh {master nfs node IP address}
example from the WinLab setup:
sudo ./slave_nfs_node.sh 10.31.3.38 |
ONAP Installation
Perform the following steps in onap-control-1 VM
Clone the OOM helm repository
Use the master branch as Dublin branch is not available.
Perform the from the home directory
Code Block |
---|
git clone http://gerrit.onap.org/r/oom --recurse-submodules
mkdir .helm
cp -R ~/oom/kubernetes/helm/plugins/ ~/.helm
cd oom/kubernetes/sdnc |
Edit the values.yaml file
Code Block |
---|
...
#Replace image ID from image: onap/sdnc-image:1.5.2
image: onap/sdnc-image:1.6.0-STAGING-20190520T202605Z
# Add sdnrwt as true at the end of the config
config:
...
sdnrwt: true
# maria-db-galera
mariadb-galera:
...
replicaCount: 1
# set replica count to 3 as default for a SDN cluster
replicaCount: 3
service:
...
internalPort5: 8085
internalPort6: 8185
internalPort7: 9200
...
externalPort5: 8285
nodePort5: 85
externalPort6: 8295
nodePort6: 86
externalPort7: 9200
nodePort7: 92
|
Save the file
navigate to templates folder:
Edit the statefulset.yaml file
Code Block |
---|
...
spec:
...
template:
...
spec:
...
containers:
- name: {{ include "common.name" . }}
...
# Add 3 new ports under ports
ports:
...
- containerPort: {{ .Values.service.internalPort5 }}
- containerPort: {{ .Values.service.internalPort6 }}
- containerPort: {{ .Values.service.internalPort7 }}
...
# add sdnrwt flag set to true under env
env:
...
- name: SDNRWT
value: "{{ .Values.config.sdnrwt}}" |
Save the file
Edit the service.yaml file
Code Block |
---|
...
spec:
type: {{ .Values.service.type }}
ports:
{{if eq .Values.service.type "NodePort" -}}
...
- port: {{ .Values.service.externalPort5 }}
targetPort: {{ .Values.service.internalPort5 }}
nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort5 }}
name: "{{ .Values.service.portName }}-8285"
- port: {{ .Values.service.externalPort6 }}
targetPort: {{ .Values.service.internalPort6 }}
nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort6 }}
name: "{{ .Values.service.portName }}-8295"
- port: {{ .Values.service.externalPort7 }}
targetPort: {{ .Values.service.internalPort7 }}
nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort7 }}
name: "{{ .Values.service.portName }}-9200" |
Start helm server
go to home directory and start helm server and local repository.
Code Block |
---|
cd
helm serve & |
Hit on ENTER key to come out of helm serve if it shows some logs
Add helm repository
Note the port number that is listed and use it in the Helm repo add as follows
Code Block |
---|
helm repo add local http://127.0.0.1:8879 |
Verify helm repository
output:
Code Block |
---|
ubuntu@onap-control-1:~$ helm repo list
NAME URL
stable https://kubernetes-charts.storage.googleapis.com
local http://127.0.0.1:8879
ubuntu@onap-control-1:~$ |
Make onap helm charts
Code Block |
---|
cd ~/oom/kubernetes
make all; make onap |
Note |
---|
title | Do not use sudo to perform make |
---|
|
|
This take somewhere around 10-15 minutes of time to make all the helm charts and save the charts into local helm repository
output:
Code Block |
---|
ubuntu@onap-control-1:~$ cd ~/oom/kubernetes/
ubuntu@onap-control-1:~/oom/kubernetes$ make all; make onap
[common]
make[1]: Entering directory '/home/ubuntu/oom/kubernetes'
make[2]: Entering directory '/home/ubuntu/oom/kubernetes/common'
[common]
make[3]: Entering directory '/home/ubuntu/oom/kubernetes/common'
==> Linting common
[INFO] Chart.yaml: icon is recommended
1 chart(s) linted, no failures
Successfully packaged chart and saved it to: /home/ubuntu/oom/kubernetes/dist/packages/common-4.0.0.tgz
make[3]: Leaving directory '/home/ubuntu/oom/kubernetes/common'
...
...
...
|