I got a microk8s v1.28.14 cluster and I want to use the kubernetes-dashboard.
I enabled the dashboard via microk8s enable dashboard, dashboard pod and service are created in the 'kube-system'-namespace, curl -k https://10.152.183.43 on the service works.
Now I want to be able to externally access my dashboard. Using cloudflare for my domain with HTTPS redirection and flexible TLS settings.
apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: kubernetes-dashboard namespace: kube-system spec: rules: - host: cluster.my-domain.com http: paths: - path: / pathType: Prefix backend: service: name: kubernetes-dashboard port: number: 443 The ingress itself looks fine:
Name: kubernetes-dashboard Labels: <none> Namespace: kube-system Address: 127.0.0.1 Ingress Class: public Default backend: <default> Rules: Host Path Backends ---- ---- -------- cluster.my-domain.com / kubernetes-dashboard:443 (10.1.206.212:8443) Annotations: <none> Events: <none> When now trying to access my dashboard (`curl -k https://cluster.my-domain.com'), I get the following error:
Client sent an HTTP request to an HTTPS server
Any idea how this could be solved?