apiVersion: v1
kind: ConfigMap
metadata:
  namespace: metallb-system
  name: config
  annotations:
    strategy.spinnaker.io/versioned: 'false'
data:
  config: |
    # The address-pools section lists the IP addresses that MetalLB is
    # allowed to allocate
    address-pools:
    - # A name for the address pool. Services can request allocation
      # from a specific address pool using this name, by listing this
      # name under the 'metallb.universe.tf/address-pool' annotation.
      name: garage
      # Protocol can be used to select how the announcement is done.
      # Supported values are bgp and layer2.
      protocol: layer2
      # 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.
      addresses:
      - 172.31.51.51-172.31.51.99
      # (optional) If true, MetalLB will not allocate any address that
      # ends in .0 or .255. Some old, buggy consumer devices
      # mistakenly block traffic to such addresses under the guise of
      # smurf protection. Such devices have become fairly rare, but
      # the option is here if you encounter serving issues.
      avoid-buggy-ips: true
      # (optional, default true) If false, MetalLB will not automatically
      # allocate any address in this pool. Addresses can still explicitly
      # be requested via loadBalancerIP or the address-pool annotation.
      auto-assign: true
