Can I Split Kubernetes Service CIDR for Different Apps?

0
10
Asked By CuriousCoder42 On

I'm looking for a way to separate specific subsets of the Kubernetes Services CIDR for different applications. For instance, is it possible to set up something like this?
- 10.98.32.0/20 for App A
- 10.108.128.0/18 for App B
- 10.100.64.0/19 for App C
Could I configure the Services CIDR in this way?

3 Answers

Answered By SimpleQuery123 On

What’s the reason behind wanting to do this?

CuriousCoder42 -

I’m considering it for security reasons. I’m working on integrating Tailscale with Kubernetes and trying to find the best way to expose certain Kubernetes CIDRs to my tailnet.

Answered By SubnetSeeker99 On

You can allocate subnets for different namespaces using kube ovn, but I'm not sure if it's really worth the effort for your use case.

Answered By TechGuru88 On

You can definitely achieve what you're looking for, though I haven't personally implemented it myself. Some folks have done this using tools like vCluster or Multus. However, think about your application architecture carefully; tightly coupling your IP space to the underlying infrastructure can make your setup pretty fragile. It's often better to manage IP requirements outside Kubernetes using external load balancers to keep things neat and abstracted.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.