diff --git a/test/deploy-submarinner-noglobalnet.sh b/test/deploy-submarinner-noglobalnet.sh new file mode 100755 index 0000000000..9009c59988 --- /dev/null +++ b/test/deploy-submarinner-noglobalnet.sh @@ -0,0 +1,13 @@ +#!/bin/bash -e + +# Required for `subctl join`. +export KUBCONFIG=$HOME/.kube/config + +echo "## Deploying broker on cluster dr1" +subctl deploy-broker --context dr1 + +echo "## Joining cluster dr1" +subctl join broker-info.subm --context dr1 --clusterid dr1 --clustercidr=10.96.0.0/12 --cable-driver vxlan + +echo "## Joining cluster dr2" +subctl join broker-info.subm --context dr2 --clusterid dr2 --clustercidr=10.112.0.0/12 --cable-driver vxlan diff --git a/test/envs/submariner.yaml b/test/envs/submariner-globalnet.yaml similarity index 83% rename from test/envs/submariner.yaml rename to test/envs/submariner-globalnet.yaml index 5c51a7e1e5..014f8faa35 100644 --- a/test/envs/submariner.yaml +++ b/test/envs/submariner-globalnet.yaml @@ -1,7 +1,7 @@ # SPDX-FileCopyrightText: The RamenDR authors # SPDX-License-Identifier: Apache-2.0 -# Environment for testing submariner deployment. +# Environment for testing submariner deployment with globalnet. --- name: submariner diff --git a/test/envs/submariner-noglobalnet.yaml b/test/envs/submariner-noglobalnet.yaml new file mode 100644 index 0000000000..78376d3819 --- /dev/null +++ b/test/envs/submariner-noglobalnet.yaml @@ -0,0 +1,25 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + +# Environment for testing submariner deployment without globalnet. +--- +name: submariner + +templates: + - name: cluster + driver: kvm2 + container_runtime: containerd + network: default + cni: kindnet + memory: 4g +profiles: + - name: dr1 + template: cluster + service_cluster_ip_range: 10.244.0.0/16 + extra_config: + - kubeadm.pod-network-cidr=10.96.0.0/12 + - name: dr2 + template: cluster + service_cluster_ip_range: 10.245.0.0/16 + extra_config: + - kubeadm.pod-network-cidr=10.112.0.0/12