Skip to content

Latest commit

 

History

History
 
 

interdomain

Basic floating interdomain examples

Floating interdomain

Basic floating interdomain examples includes the next setup:

NSM floating interdomain Scheme

Interdomain

Interdomain tests can be on two clusters, for thus tests scheme of request will look as:

NSM  interdomain Scheme

Requires

Includes

Run

1. Apply deployments for cluster1:

export KUBECONFIG=$KUBECONFIG1
kubectl create ns nsm-system

Apply NSM resources for basic tests:

kubectl apply -k ./clusters-configuration/cluster1

Wait for nsmgr-proxy-service exposing:

kubectl get services nsmgr-proxy -n nsm-system -o go-template='{{index (index (index (index .status "loadBalancer") "ingress") 0) "ip"}}'

2. Apply deployments for cluster2:

export KUBECONFIG=$KUBECONFIG2
kubectl create ns nsm-system

Apply NSM resources for basic tests:

kubectl apply -k ./clusters-configuration/cluster2

Wait for nsmgr-proxy-service exposing:

kubectl get services nsmgr-proxy -n nsm-system -o go-template='{{index (index (index (index .status "loadBalancer") "ingress") 0) "ip"}}'

3. Apply deployments for cluster3:

export KUBECONFIG=$KUBECONFIG3
kubectl create ns nsm-system

Apply NSM resources for basic tests:

kubectl apply -k ./clusters-configuration/cluster3

Wait for nsmgr-proxy-service exposing:

kubectl get services registry -n nsm-system -o go-template='{{index (index (index (index .status "loadBalancer") "ingress") 0) "ip"}}'

Cleanup

To free resouces follow the next command:

export KUBECONFIG=$KUBECONFIG1 && kubectl delete ns nsm-system
export KUBECONFIG=$KUBECONFIG2 && kubectl delete ns nsm-system
export KUBECONFIG=$KUBECONFIG3 && kubectl delete ns nsm-system