You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 17 Next »

Common

These instructions apply to all releases Beijing and newer.

Create VMs

For sites

Create two kubernetes clusters aka sites. Each site should have one master and at least three worker nodes with below config -

VCPUs4
Disk20 GB
RAM16 GB


Configure Kubernetes Clusters


Prepare sites

Note that we are using "coredns" feature gate instead of "kube-dns".


Site 1 (Primary Site)

Follow steps from below link to install a kubernetes cluster using kubeadm, with four VMs created in above step -

https://wiki.onap.org/display/DW/Deploying+Kubernetes+Cluster+with+kubeadm

Steps before "Configuring SDNC-ONAP" should only be followed.


Follow steps from following link to deploy SDN-C: Deploying SDN-C using helm chart

Before deploying SDN-C Cluster on secondary kubernetes cluster, configure the values.yaml file for SDN-C chart to enable GeoRedundancy.

The values.yaml file is what defines the GEO partitioning for the clusters, so myODLCluster should have the IP address of the the Primary Master node and the peerODLCluster should have the IP address of the Secondary Master node.

isPrimaryODLCluster should be true on the Primary Cluster.

Green values are not in the file by default and must be added.

Example of <oom repo>/kubernetes/sdnc/values.yaml

geoEnabled: true

config:

enableClustering: true
myODLCluster: 10.147.114.5
peerODLCluster: 10.147.112.105
isPrimaryCluster: true


Enable geo for primary site for MySQL chart as below:

Enable geo

for primary site (site 1)

vi kubernetes/common/mysql/values.yaml

Change the following fields with the new value:

field

new value

old value

geoEnabledtruefalse




Site 2 (Secondary/Backup Site)

Follow steps from below link to install another kubernetes cluster with SDN-C using kubeadm, with four VMs created in above step -

https://wiki.onap.org/display/DW/Deploying+Kubernetes+Cluster+with+kubeadm

Steps before "Configuring SDNC-ONAP" should only be followed.


Follow steps from following link to deploy SDN-C: Deploying SDN-C using helm chart

Before deploying SDN-C Cluster on secondary kubernetes cluster, configure the values.yaml file for SDN-C chart to enable GeoRedundancy.

The values.yaml file is what defines the GEO partitioning for the clusters, so myODLCluster should have the IP address of the the Secondary Master node and the peerODLCluster should have the IP address of the Primary Master node.

isPrimaryODLCluster should be false on the Secondary Cluster.

Green values are not in the file by default and must be added.


Example of <oom repo>/kubernetes/sdnc/values.yaml

geoEnabled: true

config:

enableClustering: true
myODLCluster: 10.147.112.105
peerODLCluster: 10.147.114.5
isPrimaryCluster: false


b) configure the geographic site id for secondary site for MySQL chart as below:

Configure geographic site id

for secondary site (site 2)

vi kubernetes/common/mysql/values.yaml

Change the following fields with the new value:

field

new value

old value

geoSiteId21
geoEnabledtruefalse
  • No labels