I have very simple configuration for basic auth
apiVersion: v1
kind: Secret
metadata:
name: auth-secret
namespace: kibana
type: kubernetes.io/basic-auth
data:
username: YWRtaW4K
password: YWRtaW4K
---
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: auth-middleware
namespace: kibana
spec:
basicAuth:
secret: auth-secret
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.middlewares: kibana-auth-middleware@kubernetescrd
traefik.ingress.kubernetes.io/router.tls: "true"
name: auth-ingress
namespace: kibana
spec:
ingressClassName: traefik
rules:
- host: abc.example.com
http:
paths:
- backend:
service:
name: kibana-dashboard
port:
name: http
path: /
pathType: ImplementationSpecific
but in the dashboard i get error in the http-router kibana-auth-middleware@kubernetescrd
not found.
I know this is very basic thing, but i tried all the possible ways, can someone please help