RE: Connecting two kubernetes clusters through submariner

35 views
Skip to first unread message

Vaishnavi Rajulu

unread,
Jul 4, 2024, 7:12:58 AM7/4/24
to submariner-users
Hi,
I am using two kubernetes clusters one is RKE2 and another one is K3S.
I have deployed broker in RKE2. Now when I try to join the broker from K3S, I get this error.

master:~/.kube# subctl join --kubeconfig config broker-info.subm
 ✓ broker-info.subm indicates broker is at https://x.x.x.x:6443
 ✗ Error building the cluster.Info for the default configuration: error retrieving Submariner: failed to get API group resources: unable to retrieve the complete list of server APIs: submariner.io/v1alpha1: Unauthorized

Yossi Boaron

unread,
Jul 9, 2024, 1:48:49 AM7/9/24
to Vaishnavi Rajulu, submariner-users
Thanks for reaching out Vaishnavi,



Subctl commands that need access to Kubernetes cluster handle the same access mechanisms as kubectl (see kubectl options), in case of kubeconfig file with multiple contexts a specific context can be chosen using the --context option; By default,subctl commands use the chosen kubeconfig's curent context.

In your case, it seems that current context in kubeconfig you provided is unauthorized to access  submariner.io/v1alpha1 , could you specify a different context?

Yossi

--
You received this message because you are subscribed to the Google Groups "submariner-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to submariner-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/submariner-users/1e177208-7211-43e9-b5a3-5e4b5e8b891fn%40googlegroups.com.

Daniel Farrell

unread,
Jul 9, 2024, 1:48:53 AM7/9/24
to Vaishnavi Rajulu, submariner-users
Hello Vaishnavi,

Thanks for your interest in Submariner!

There are known issues with K3s.
Unfortunately, we haven't been able to find devs with access to K3s clusters and/or cycles to support it.
We've removed the K3s quickstart to try to avoid misleading people.


As always, we'd welcome contributions.

Thanks,
Daniel

--

Yossi Boaron

unread,
Jul 9, 2024, 10:52:44 AM7/9/24
to Daniel Farrell, Vaishnavi Rajulu, submariner-users
Hi all,

I filed this GH issue to track subctl unauthorized error. 
subctl join must be run as a user with appropriate permissions,
It should be documented in Submariner web site.

Yossi


Reply all
Reply to author
Forward
0 new messages