I have used the following commands for installing Traefik.
kubectl create ns traefik
helm repo add traefik https://helm.traefik.io/traefik
helm repo update
helm install -n traefik traefik traefik/traefik
kubectl -n traefik get svc/traefik, I see this.
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/traefik LoadBalancer 10.106.121.201 <pending> 80:30346/TCP,443:31696/TCP 9m19s
So, should Metallb be installed before Traefik? (Metallb installation failed for some reason around
ConfigMap - but, that is a separate story.)
MetalLB is not the prerequisite for Traefik. However, based on the MetalLB documentation you need to add an annotation to the service in order to get the proper IP from MetalLB list.
You can add that by modifying values for Traefik Helm Chart