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

# MetalLB

[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")

Platform:

22.04

stable ddac181

```
juju deploy metallb
```

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

* [image-registry](https://charmhub.io/metallb/configurations#image-registry)
* [iprange](https://charmhub.io/metallb/configurations#iprange)
* [metallb-release](https://charmhub.io/metallb/configurations#metallb-release)
* [namespace](https://charmhub.io/metallb/configurations#namespace)
* [node-selector](https://charmhub.io/metallb/configurations#node-selector)

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

* image-registry | string

  Default: rocks.canonical.com:443/cdk

  Image registry for metallb container images.
  The value set here will replace the host portion of each image URL in
  the release manifests.
* iprange | string

  Default: 192.168.1.240-192.168.1.247

  Comma-separated list of CIDRs and/or IPV4 and IPV6 ranges that define the IP addresses
  MetalLB will assign to services
  Example:
  192.168.10.0/24,192.168.9.1-192.168.9.5,fc00:f853:0ccd:e799::/124
* metallb-release | string

  Default: v0.13.10

  Specify the version of metallb to deploy. The version must be available in the upstream/metallb-native/manifests
  directory of the charm source code in order to be deployed
* namespace | string

  Default: metallb-system

  Namespace that the metallb resources will be installed in. This namespace will be created by the charm,
  and should not currently exist
* node-selector | string

  Default: kubernetes.io/os=linux

  Node selector to use for the metallb controller and speaker pods. This is a string of key=value pairs
  separated by spaces that will be used to select the nodes that the metallb pods will be deployed on.

  See upstream docs:
  https://metallb.universe.tf/configuration/\_advanced\_bgp\_configuration/

  Example:
  kubernetes.io/hostname=worker1
