kube-router | Kube-router , a turnkey solution for Kubernetes networking | Networking library
kandi X-RAY | kube-router Summary
kandi X-RAY | kube-router Summary
Kube-router is a turnkey solution for Kubernetes networking with aim to provide operational simplicity and high performance.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of kube-router
kube-router Key Features
kube-router Examples and Code Snippets
Community Discussions
Trending Discussions on kube-router
QUESTION
I have in my home lab a default installation of Kubernetes with kube-router as the network provider. kube-router is, as default, set as the service proxy. I have not set an explicit service-cluster-ip-network in my kube-controller-manager, so kube-router should be assigning service cluster IPs only within the default 10.96.x.x/16 subnet. However, I am regularly getting service cluster IPs anywhere within the larger 10.x.x.x./8 subnet. I am at a loss where/why it's not remaining within 10.96.x.x. Ideas? Thanks!
...ANSWER
Answered 2021-Jan-18 at 12:44TL;DR
Your Kubernetes cluster is behaving correctly.
By default (if not specified otherwise) using kubeadm
to provision your cluster, the --service-cidr
is set to 10.96.0.0/12
.
ClusterIP
address like 10.110.15.13
would be included in the above mentioned network (10.96.0.0/12
).
I've provided more explanation below:
SubnettingIf you use one of the available online IP calculators you will be seeing exact same situation like the one included below:
CIDR 10.96.0.0/12 Subnet mask 255.240.0.0 Network address (first) 10.96.0.0 Broadcast address (last) 10.111.255.255 First useable address 10.96.0.1 Last useable address 10.111.255.254 Number of hosts allocatable 1048574By above diagram you can see that the Service IP
range would be following:
10.96.0.1
-10.111.255.254
This would make IP's like: 10.104.5.2
, 10.110.15.13
be in range of above network.
--service-cidr
As said earlier if you don't specify the --service-cidr
when using $ kubeadm init
it will be set to default 10.96.0.0/12
.
Following the official documentation of kubeadm
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install kube-router
Architecture
See Kube-router in action
User Guide
Developer Guide
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page