Adding new node fails with error "Error registering network: failed to acquire lease: out of subnets"

Problem

  • Adding new node fails & flannel shows below error:
Bash
Copy

Environment

  • Platform9 Managed Kubernetes- v5.4 and Higher.
  • Cluster configured with flannel.
  • The node is re-added to the cluster.

Cause

  • Flanneld by default sets a TTL for each key in etcd. The default TTL is however 24 hours. So, the subnet is released after 24 hours and new nodes can be added then.

Resolution

  • Check the current TTL value using the command below:
Bash
Copy
  • Default TTL value is set to 24 hours and re-adding/adding nodes should work after this TTL expiry after which the unused subnets would be released.
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches