question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding node to existing cluster with a shared subnet fails

See original GitHub issue

A little overview of the structure of my cluster:

  • Currently contains 3 nodes, each one of these nodes has an interface in both the subnets 192.168.2.0/24 and 172.16.1.0/28. The 172 subnet is a completely isolated 10G network existing between the existing 3 nodes (no connection to 4th node)
  • These 3 nodes were joined together on the 172 subnet.
  • In the output of microk8s status they are referred to by their IPs in the 172 subnet
  • The 4th node does not have a 172 interface, only a 192 interface
  • The 4th node is unable to connect using microk8s join $IP_AND_TOKEN_OF_MASTER_NODE_192_ADDRESS microk8s inspect tarball on failed 4th node I raised this issue in slack and @balchua says it appears that dqlite is trying to connect to the other nodes using their 172 interfaces which fails as that route doesn’t exist

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
khumpscommented, Apr 15, 2021

To sum up my conversation with @ktsakalozos, this is expected behavior as dqlite does not support inter-subnet communication within it’s cluster. As a feature request based on that knowledge, microk8s add-node should not show any interfaces that it can not properly initiate a connection over (all interfaces work on a fresh install but as soon as a node is added, the interface is locked)

1reaction
balchuacommented, Apr 14, 2021

Sorry my response wasn’t very clear. What i mean is that if in the case that all nodes have access to each other’s subnets, then one can use any of those join tokens printed. But yes if a node like in your case do not belong to that subnet then it is a good option.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding node to existing cluster with a shared subnet fails #2173
A little overview of the structure of my cluster: Currently contains 3 nodes, each one of these nodes has an interface in both...
Read more >
Add node on different subnet to existing cluster
Existing 2 node cluster with "Heartbeat" network using 192. ... I want to add a VM to this cluster but its on a...
Read more >
Setting up clusters with Shared VPC - Google Cloud
For Network, select shared-net. For Node subnet, select tier-2. For Pod secondary CIDR range, select tier-2-pods.
Read more >
Adding worker nodes and zones to clusters - IBM Cloud Docs
VPC subnets provide IP addresses for your worker nodes and load balancer services in the cluster, so create a VPC subnet with enough...
Read more >
5 things you need to know to add worker nodes in the AWS ...
If your worker node's subnet is not configured with the EKS cluster, worker node will not be able to join the cluster. 2....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found