0
votes

I am trying to use Traefik as a Kubernetes Ingress on Azure Kubernetes Service. While there are docs that provide information on how to do that with Kubernetes Ingress, I cannot find information about how to do that with Traefik Ingress.

Has anyone out there achieved that and can help?

PS. I am using Helm to install Traefik

2
already saw that article, but IP will be generated randomly as far as I can evaluateMeBNoah
Depends on the helm chart. My guess is the helm chart doesn't support it - technically speaking, you can roll your own helm chart to do what you want.mmking

2 Answers

2
votes

Before, you must create an Public IP.

And after, in values.yml file, you assign your IP:

service:
  spec:
    loadBalancerIP: YOURIP
2
votes

In the meanwhile I found it, so I am going to answer my own question.

Like @mashov said you need

service:
  spec:
  loadBalancerIP: YOURIP

But also you need to add the following annotation

service:
  spec:
  annotations:
  "service.beta.kubernetes.io/azure-load-balancer-resource-group": "Resource Group that contains public IP"

Therefore your AKS identity needs to have the role "Network Contributor" on the resource group that holds the public IP