For deploying multiple connected clusters we are using infra/engine project.
We are going to deploy the following k8s clusters and then connect them together afterward.
onap-k8s-cluster we are using
10.1.0.0/24 as cluster network CIDR.
For deployment of dublin and athlone clusters, we need to use different CIDR block and stack name env vars.
After successful execution of above commands first we need to release floating IPs used by
dublin-k8s-stack mapped to their jumphosts.
Now we have to remove gateway interfaces from
router.dublin-k8s-stack having address
router.athlone-k8s-stack having address
10.3.0.1 using openstack web interface network/routing section
And add them to
router.onap-k8s-stack by selecting the following subnets
10.3.0.1 as respective gateway ip addresses.
For allowing traffic between between different network subnets we have to create new rules in following security groups.
Add two new rules that allows all tcp traffic on all ports from following security groups
Similarly add two new rules that allows all tcp traffic on all ports from following security groups
Also add two new rules that allows all tcp traffic on all ports from following security groups
Post deployment we have kubeconfig files in following jumphosts
jumphost.onap-k8s-stack (ssh root@$jumphost.onap-k8s-stack-ip)
jumphost.dublin-k8s-stack (ssh root@$jumphost.dublin-k8s-stack-ip)
jumphost.athlone-k8s-stack (ssh root@$jumphost.athlone-k8s-stack-ip)
After ssh into all jump-host copy contents of
~/.kube/config and merge and place them in
We have removed the floating ip addresses of dublin & athlone jumphost instances but we can ssh into them using their private ip address through onap jumphost
The merged kubeconfig will look similar to
After placing the merged kubeconfig in onap jumphost the following command should output cluster info