-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IP Address Range from different to be supported in single IPPool #278
Comments
The spec does support multiple ranges. The examples in the usage examples just show variants, you can provide multiple ranges or subnets. With the current resources, you'd need to set the prefix to 14, but I guess that's not what you want. apiVersion: ipam.cluster.x-k8s.io/v1alpha2
kind: InClusterIPPool
metadata:
name: inclusterippool-sample
spec:
addresses:
- 100.96.32.1-100.96.32.100
- 100.98.254.1-100.98.254.100
prefix: 14
gateway: 100.98.254.254 I think the issue here is that we do not support different prefix lengths (and therefore also gateways) for different subnets or ranges. With the current CRD it would also be difficult to implement in a nice way. Maybe we could consider adding a list of apiVersion: ipam.cluster.x-k8s.io/v1alpha2
kind: InClusterIPPool
metadata:
name: inclusterippool-sample
spec:
networks:
- addresses:
- 100.96.32.1-100.96.32.100
prefix: 22
gateway: 100.96.32.254
- addresses:
- 100.98.254.1-100.98.254.100
prefix: 23
gateway: 100.98.254.254 I'm not sure about adding this complexity here. For complicated setups like this, it might be better using an external IPAM system like Netbox or Infoblox. There is no provider for Netbox yet. My condolences on that network setup, I thought our telco environment was bad, but this seems worse. |
Can we plan to add networks spec? |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
As per current CRD Spec, InClusterIPPool or GlobalInClusterIPPool supports addresses from 1 subnet only.
For eg,
Single InClusterIPPool and GlobalInClusterIPPool cannot support below two subnets,
Request you to support both subnets under single IPPool. We were able to use this feature using capm3 ippool.
apiVersion: ipam.metal3.io/v1alpha1
kind: IPPool
metadata:
name: vlan
spec:
pools:
prefix: 22
start: 100.96.32.1
prefix: 23
start: 100.98.254.1
The text was updated successfully, but these errors were encountered: