I am running Traefik (v2.0) as ingress gateway for my EKS cluster. Traefik ingress is working fine.
Now, I need to add https support for my ingress using self signed certificate. For this, I have:
- Created a IngressRoute from http to https redirectio -> This works fine
- Created a secret having the key and cert of my self-signed certificate
kubectl create secret tls tlssecret --key="eks.tls.key" --cert="eks.tls.crt"
- Added tls secret to my IngressRoute deployment:
- apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: pulseingressroutetls
namespace: pulse
spec:
entryPoints:
- websecure
tls:
secretName: pulsetlssecret
routes: - match: PathPrefix(/auth
) ...
After this deployment, when I browse ingress url, it still presents me the TRAEFIK DEFAULT CERT, not my self-signed certificate.
Please let me know what I am doing wrong here? Is there any other way of doing it?