Using Traefik with TLS on Kubernetes
Patrick Easters
2038

Thanks Patrick.

I’m having some issues:

I’m using AWS Certificates that I configure with the Kubernetes ELB service:

apiVersion: v1
kind: Service
metadata:
name:
traefik-proxy
annotations:
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: "arn:aws:acm:us-east-1:xxx:certificate/xxx"
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "http"
spec:
type:
LoadBalancer
selector:
app:
traefik-proxy
tier: proxy
ports:
- port: 80
targetPort: 80
name: http
- port: 443
targetPort: 80
name: https

But if I configure traefik like so:

defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"

Then I get errors:

Error loading entrypoint configuration for frontend www.myserver.io: Unknown entrypoint https

And HTTPS requests return 404.

If I remove the configuration then HTTPS requests work fine, but there’s obviously no HTTP=>HTTPS redirect (and these requests get ERR_EMPTY_RESPONSE).

Also, I have loglevel set to INFO, but don’t see any logging of these requests. DEBUG is really noisy (full of “Skipping event from kubernetes…”) and still I don’t see anything logged for HTTP requests.

Do you have any suggestions.

Thanks.

Like what you read? Give richburdon a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.