I have domain name e.g. www.mydomain.com point to traefik, I want it to proxy to a service behind aws loadbalancer, my service and ingress are defined like this:
--- apiVersion: v1 kind: Service metadata: name: exservice spec: ports: - name: https port: 443 type: ExternalName externalName: aws-alb-xxx.us-east-1.elb.amazonaws.com --- apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: exservice annotations: traefik.ingress.kubernetes.io/router.entrypoints: web kubernetes.io/ingress.class: traefik-public labels: name: exservice spec: rules: - host: www.mydomain.com http: paths: - path: / backend: serviceName: exservice servicePort: 443
In aws load balancer, I have https enabled with "*.mydomain.com" certificate.
When I request https://www.mydomain.com, I got:
msg="'500 Internal Server Error' caused by: x509: certificate is valid for *.mydomain.com, not aws-alb-xxx.us-east-1.elb.amazonaws.com"
What should I do? Thanks.