Skip to content

Commit

Permalink
Add submariner environment without overlapping CIDRs
Browse files Browse the repository at this point in the history
In the new environment we managed the service and pod network manually
so the CIDRs do not overlap and we don't need globalnet.

All submariner tests pass also with this version. If using globalnet is
an issue we can use this version.

Work in progress:
- Using temporary deploy script

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
  • Loading branch information
nirs committed Jun 11, 2023
1 parent ab2246b commit 657a719
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
13 changes: 13 additions & 0 deletions test/deploy-submarinner-noglobalnet.sh
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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

Expand Down
25 changes: 25 additions & 0 deletions test/envs/submariner-noglobalnet.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 657a719

Please sign in to comment.