bootstrap fails with Invalid networks:service CIDR - no route exists for 10.96.0.0/12 #3233
Replies: 7 comments 1 reply
-
Well, is there a route for If no default route can be defined, then you can create a |
Beta Was this translation helpful? Give feedback.
-
I am at the bootstrap phase so far, so nothing has been deployed, the services network is supposed to be an internal network for mk8s where the services (DNS, etc...) are hosted.. |
Beta Was this translation helpful? Give feedback.
-
The ClusterIP 'network' is not really a network, it's a range of addresses which will be assigned to Now, in Linux, when a connection is made to an address and there's no entry in the routing table matching said address, the connection attempt is refused, and doesn't even end up in the So, MetalK8s (and K8s in general) requires the ClusterIP address range to be covered by a route on the system. In general, having a Hence, using a 'dummy' link and a route to said dev fulfills the requirements. To summarize: we don't need the network to exist (to the contrary). We do need a route for the network to exist (even if that route goes nowhere at all, that's fine, it's not really used anyway). |
Beta Was this translation helpful? Give feedback.
-
@scality/metalk8s I couldn't immediately find something in the docs explaining what causes this pre-check to fail and what can be done about it. May want to improve on this. |
Beta Was this translation helpful? Give feedback.
-
indeed no default route on the server |
Beta Was this translation helpful? Give feedback.
-
I guess we should add a note about this in the troubleshooting section: https://metal-k8s.readthedocs.io/en/2.8.0/installation/troubleshooting/bootstrap_installation_errors.html |
Beta Was this translation helpful? Give feedback.
-
Indeed. Let's track that in another ticket. Also, going to move this one in |
Beta Was this translation helpful? Give feedback.
-
Component:
bootstrap
What happened:
bootstrap fails with
Invalid networks:service CIDR - no route exists for 10.96.0.0/12
What was expected:
Success
Steps to reproduce
Follow the documentation at https://documentation-internal.scality.com/RINGX/0.3.0/MetalK8s/installation/bootstrap.html, define the networks pods and services , run bootstrap from mk8s-2.8
Resolution proposal (optional):
Succeed may be ?
Beta Was this translation helpful? Give feedback.
All reactions