Basic floating interdomain examples includes the next setup:
Interdomain tests can be on two clusters, for thus tests scheme of request will look as:
- Kernel to VXLAN to Kernel Connection
- Kernel to VXLAN to Kernel Connection via floating registry
- Kernel to WIREGUARD to Kernel Connection
- Kernel to WIREGUARD to Kernel Connection via floating registry
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"}}'
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