I am using traefik 2.2.8, installed from the official helm chart (v9.1.1), and I'm not able to create a kubernetes ingress that would work with Traefik. traefik pod logs gives me this:
level=error msg="Cannot create service: subset not found"
E V E R Y ingress object gives this. Validated that, for a specific one, the pod is in ready state, that there's the service object referred by the ingress.
I hhave no clue on how to solve it, and I wouldn't want to go back to traefik 1.8.x for which my ingresses work without any issue.
This error usually means that the service does not have active end points. There is also a possibly related issue.
Found out. I had to add these two lines:
In the ingress annotations for Traefik to route correctly.
I'm getting this error when trying to test the ingress without TLS as well.
Traefik installed via Helm with
helm install traefik traefik/traefik -n traefik -f traefik/args.yaml and these additional args:
Then a test chart to test the ingress with:
helm create test, and the only change to the generated chart is:
- host: my.sub.domain
- path: '/'
However, when I deploy with
helm install -n test hello-world ./test, I the specified host is inaccessible and I get this error from Traefik:
time="2021-01-07T00:56:37Z" level=error msg="Cannot create service: subset not found" namespace=test serviceName=hello-world-test providerName=kubernetes servicePort=80 ingress=hello-world-test
time="2021-01-07T00:56:37Z" level=error msg="Cannot create service: subset not found" namespace=test serviceName=hello-world-test servicePort=80 providerName=kubernetes ingress=hello-world-test