How do I configure routes for AWS loadbalancer external-ip
I'm running traefik on EKS and the service creates an NLB with an external ip.
I'm able to configure routes if I use a domain, but can't configure routes when i use the EXTERNAL-IP: e33018611f4853-cae93e9f.elb.us-west-2.amazonaws.com
I know how to connect a route53 domain to the LB, but I want to use the external IP like:
whoami.e33018611f4853-cae93e9f.elb.us-west-2.amazonaws.com
serviceA.e33018611f4853-cae93e9f.elb.us-west-2.amazonaws.com
I tried
Routes:
Kind: Rule
Match: Host(`whoami.e33018611f4853-cae93e9f.elb.us-west-2.amazonaws.com`)
Services:
Name: whoami-svc
Port: 80
and
Routes:
Kind: Rule
Match: HostRegexp(`{subdomain:(whoami)}.e33018611f4853-cae93e9f.elb.us-west-2.amazonaws.com`)
Services:
Name: whoami-svc
Port: 80
But these dont work.
Would appreciate any help, thank you!