Hello kanav sharma,
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
1.Create a new Public IP address in Azure portal or using Azure CLI.
az network public-ip create --name <your-ip-name> --resource-group <your-resource-group> --allocation-method Static --sku Standard
2.Get the IP address of the Public IP address you just created in portal or by azure CLI.
az network public-ip show --name <your-ip-name> --resource-group <your-resource-group> --query ipAddress --output tsv
3.Create a new config map for MetalLB.
4.Create a new service of type LoadBalancer.
apiVersion: v1
kind: Service
metadata:
name: <your-service-name>
annotations:
metallb.universe.tf/address-pool: <your-ip-address>
spec:
type: LoadBalancer
ports:
- name: http
port: 80
targetPort: 8080
selector:
app: <your-app-label>
5.Wait for the external IP address to be assigned.
Hopes this answer is helpful, Please accept the answer for community purpose.