Issue: Dashboard is not working (Getting 404 error). It's working with insecure but I want it with secure.
Traefik version/image: traefik:2.4.8
We are using our own self signed certificates.
Here is my Ingress Configuration:
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: traefik-dashboard
namespace: public
spec:
entryPoints:
- traefik
routes:
- match: Host(`dashboard.manu.com`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))
kind: Rule
services:
- name: api@internal
kind: TraefikService
middlewares:
- name: auth
tls:
secretName: traefik-wildcard-cert
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: auth
namespace: public
spec:
basicAuth:
secret: dashboard-secret
namespace: public
As per the document, it looks like we need not create any separate service to access dashboard but if we mention TraefikService, then it should work.
Additional information (toml file)
traefik.toml: |
[entryPoints]
[entryPoints.web]
address = ":80"
[entryPoints.websecure]
address = ":443"
[entryPoints.websecure.http.tls]
certResolver = "default"
[entryPoints.traefik]
address = ":9000"
[providers]
providersThrottleDuration = "2s"
[providers.kubernetesIngress]
throttleDuration = "0s"
[providers.file]
filename = "/ssl-toml/ssl.toml"
[api]
dashboard = true
[[tls.certificates]]
certFile = "/ssl/tls.crt"
keyFile = "/ssl/tls.key"
[tls.options]
[tls.options.default]
minVersion = "VersionTLS12"
cipherSuites = [
"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305",
"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305",
"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
]
Not sure, what I am doing wrong. Can someone please suggest.