Skip to content

Commit b0321f8

Browse files
committed
submariner: Update to 0.24.0
Submariner 0.22+ defaults to knftables, but the minikube kernel ships with CONFIG_NF_TABLES disabled, so globalnet crashed and we could not move past 0.21.x. Set use-nftables=false via the submariner-global ConfigMap until minikube enables nftables: kubernetes/minikube#23450 Assisted-by: Cursor/Cursor Grok 4.5 High Signed-off-by: Nir Soffer <nsoffer@redhat.com>
1 parent 0cb89b1 commit b0321f8

3 files changed

Lines changed: 27 additions & 5 deletions

File tree

docs/user-quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ clusters. *Ramen* makes this easy using minikube, but you need enough resources:
168168

169169
For more info see
170170
[Submariner subctl installation](https://submariner.io/operations/deployment/subctl/).
171-
Tested with version v0.22.0. Version v0.21.2 or later is required.
171+
Version v0.24.0 or later is required.
172172

173173
1. Install the `velero` tool
174174

test/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ environment.
7676

7777
For more info see
7878
[Submariner subctl installation](https://submariner.io/operations/deployment/subctl/).
79-
Tested with version v0.22.0. Version v0.21.2 or later is required.
79+
Version v0.24.0 or later is required.
8080

8181
1. Install the `velero` tool
8282

@@ -223,7 +223,7 @@ environment.
223223

224224
For more info see
225225
[Submariner subctl installation](https://submariner.io/operations/deployment/subctl/).
226-
Tested with version v0.22.0. Version v0.21.2 or later is required.
226+
Version v0.24.0 or later is required.
227227

228228
1. Install the `kubectl-gather` plugin
229229

test/drenv/addons/submariner/start.py

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
from drenv import kubectl
1010
from drenv import subctl
1111

12-
# 0.22.0 is broken in minikube.
13-
VERSION = "0.21.2"
12+
VERSION = "0.24.0"
1413

1514
NAMESPACE = "submariner-operator"
1615

@@ -32,6 +31,9 @@ def start(broker, *clusters):
3231
for cluster in clusters:
3332
join_cluster(cluster, broker_info)
3433

34+
for cluster in clusters:
35+
configure_submariner(cluster)
36+
3537
for cluster in clusters:
3638
wait_for_cluster(cluster)
3739

@@ -84,6 +86,26 @@ def join_cluster(cluster, broker_info):
8486
)
8587

8688

89+
def configure_submariner(cluster):
90+
"""
91+
Configure submariner for minikube kernel.
92+
93+
TODO: Remove when minikube supports knftables:
94+
https://github.com/kubernetes/minikube/issues/23450
95+
"""
96+
print(f"Configuring submariner on cluster '{cluster}'")
97+
configmap = """
98+
apiVersion: v1
99+
kind: ConfigMap
100+
metadata:
101+
name: submariner-global
102+
namespace: submariner-operator
103+
data:
104+
use-nftables: "false"
105+
"""
106+
kubectl.apply("--filename=-", input=configmap, context=cluster)
107+
108+
87109
def annotate_nodes(cluster):
88110
"""
89111
Annotate all nodes with the gateway public IP address. Required when is

0 commit comments

Comments
 (0)