-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add submariner environment without overlapping CIDRs
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
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
2 changes: 1 addition & 1 deletion
2
test/envs/submariner.yaml → test/envs/submariner-globalnet.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |