---
title: Charmhub | Deploy MetalLB Controller using Charmhub - The Open Operator Collection
description: Deploy the latest version of MetalLB Controller as a Kubernetes Operator
  on any cloud.
url: https://charmhub.io/containers-metallb-controller/configurations
---

# MetalLB Controller

[Canonical Kubernetes](https://charmhub.io/publisher/containers "View all packages from Canonical Kubernetes")

* [Canonical Kubernetes](https://charmhub.io/publisher/containers "View all packages from Canonical Kubernetes")
* [Containers](https://charmhub.io/?filter=containers)

Platform:

stable 20

```
juju deploy containers-metallb-controller
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

* [iprange](https://charmhub.io/containers-metallb-controller/configurations#iprange)
* [protocol](https://charmhub.io/containers-metallb-controller/configurations#protocol)

[Learn about configurations >](https://juju.is/docs/juju/configuration#heading--application-configuration)

* iprange | string

  Default: 192.168.1.240-192.168.1.247

  For the Layer 2 Configuration only. This is the IP range from which MetalLB
  will have control over and choose IPs from to distribute to kubernetes services
  requesting an external IP of type Load Balancer. The ip range can be specified as
  a range (i.e 192.168.1.240-192.168.1.247") or as a CIDR (i.e "192.168.1.240/29")
  To be able to specify more than one ip pool, only the CIDR notation can be used
  (i.e "192.168.1.88/31,192.168.1.240/30").
* protocol | string

  Default: layer2

  Type of configuration to use to announce service IPs. Upstream MetalLB supports
  both Layer 2 and BGP configuration. This charm currently only support the
  option 'layer2'. The layer 2 configuration works by responding to ARP requests
  on your local network directly, to give the machine's MAC address to clients.
