IPAddressPool
metallb.io / v1beta1
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: example
apiVersion
string
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
kind
string
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
metadata
object
spec object required
IPAddressPoolSpec defines the desired state of IPAddressPool.
addresses
[]string required
A list of IP address ranges over which MetalLB has authority.
You can list multiple ranges in a single pool, they will all share the
same settings. Each range can be either a CIDR prefix, or an explicit
start-end range of IPs.
autoAssign
boolean
AutoAssign flag used to prevent MetallB from automatic allocation
for a pool.
avoidBuggyIPs
boolean
AvoidBuggyIPs prevents addresses ending with .0 and .255
to be used by a pool.
serviceAllocation object
AllocateTo makes ip pool allocation to specific namespace and/or service.
The controller will use the pool with lowest value of priority in case of
multiple matches. A pool with no priority set will be used only if the
pools with priority can't be used. If multiple matching IPAddressPools are
available it will check for the availability of IPs sorting the matching
IPAddressPools by priority, starting from the highest to the lowest. If
multiple IPAddressPools have the same priority, choice will be random.
namespaceSelectors []object
NamespaceSelectors list of label selectors to select namespace(s) for ip pool,
an alternative to using namespace list.
matchExpressions []object
matchExpressions is a list of label selector requirements. The requirements are ANDed.
key
string required
key is the label key that the selector applies to.
operator
string required
operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist.
values
[]string
values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch.
matchLabels
object
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed.
namespaces
[]string
Namespaces list of namespace(s) on which ip pool can be attached.
priority
integer
Priority priority given for ip pool while ip allocation on a service.
serviceSelectors []object
ServiceSelectors list of label selector to select service(s) for which ip pool
can be used for ip allocation.
matchExpressions []object
matchExpressions is a list of label selector requirements. The requirements are ANDed.
key
string required
key is the label key that the selector applies to.
operator
string required
operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist.
values
[]string
values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch.
matchLabels
object
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed.
status object
IPAddressPoolStatus defines the observed state of IPAddressPool.
assignedIPv4
integer required
AssignedIPv4 is the number of assigned IPv4 addresses.
format:
int64
assignedIPv6
integer required
AssignedIPv6 is the number of assigned IPv6 addresses.
format:
int64
availableIPv4
integer required
AvailableIPv4 is the number of available IPv4 addresses.
format:
int64
availableIPv6
integer required
AvailableIPv6 is the number of available IPv6 addresses.
format:
int64No matches. Try .spec.addresses for an exact path