tardich
September 16, 2020, 3:52am
#1
Hi,
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.
zespri
September 16, 2020, 9:13am
#2
This error usually means that the service does not have active end points. There is also a possibly related issue .
tardich
September 17, 2020, 3:20am
#3
Found out. I had to add these two lines:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
In the ingress annotations for Traefik to route correctly.
2 Likes
cat
January 7, 2021, 1:13am
#4
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:
additionalArguments:
- "--providers.kubernetesingress.ingressclass=traefik"
- "--providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik"
Then a test chart to test the ingress with: helm create test
, and the only change to the generated chart is:
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: traefik
hosts:
- host: my.sub.domain
paths:
- path: '/'
tls: []
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