Skip to content

How to create an ippool that assign IP addresses from a particular small range of a full subnet? #22

Description

@zhaojiawei392

Hi, rvanderp3!
Thanks for your development on this function. But I have a small question about this module.
Suppose i have a cluster subnet 192.168.1.0/24, is it possible to assign from the range 192.168.1.100/24-192.168.1.115/24? if so, how do i determine the spec field of the IPPool manifest? If not, what is the correct way to decide the pool range?
I tried the following spec but didn't work.
spec:
address-cidr: 192.168.1.100/28
gateway: 192.168.1.1
nameserver:
- 8.8.8.8
prefix: 24

It seems like it can only assign IP addresses from a full subnet range like from 192.168.1.1/24-192.168.1.254/24 by specifying spec field like this:
spec:
address-cidr: 192.168.1.0/24
gateway: 192.168.1.1
nameserver:
- 8.8.8.8
prefix: 24

can you give me a hand to figure this out.
Thank you very much in advance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions