By following the below steps, you can update MetalLB to the latest version:
Step 1: Check the Current MetalLB Version
Run the following command to check the version of installed MetalLB.
Sample Output:

Note
If the version displayed is metallb-1.0.0, proceed with the following steps to update to the latest version.Step 2: List the IPs
To get the list of IPs currently in use, execute following command.
Sample Output:
Step 3: Check the Services
Sample Output:

Step 4: Backup IPs and Services
Take the backup of IP addresses and their corresponding services for future reference.
Step 5: Update MetalLB Helm Chart with the latest version
Run the following command to update the MetalLB Helm chart.
Step 6: Verify MetalLB Pods
Wait for the MetalLB pods to restart and then check their status.
Sample Output:

Step 7: Install IPAddressPool Helm Chart
Install the IPAddressPool Helm chart using the IP addresses obtained in Step 2. Replace the example IPs with your actual IPs. For multiple IPs, use a comma-separated list; for a single IP, use it directly without commas.
Note
Replace the “IP Address” with your ip address which you get in Step 2.Example:
Step 8: Check Services for Correct IP Assignment
Note
If the IPs are correctly assigned, the upgrade is successful here. If not, follow the steps below.Step 9: Correct the IP Assignment for Services
If the ip’s got interchanged to services, then follow below steps to assign ip’s to their respective services.
- Run below command to change the service types.
- After changing the cluster type:
- If you want to assign 1st ip address to squid-proxy then run the commands below in the same order as given below.
- If you want to assign the 1st ip address to gateway, then run the below commands in the same order as given below.
Step 10: Verify Correct IP Assignment
Check the services again to ensure the IPs are correctly assigned to their respective services.