Impossible to login with default username and password through traefik ingress on a local Kubernetes lab environment

I have installed Lenses HQ on my local KubeADM on a Macbook Pro.

I have used port-forwarding to access the login page and login works fine for it.
Now I want to avoid having to use port-forwarding I have apply the traefik ingress policy from the documentation.

I have edited /etc/hosts to map the cluster address to localhost

127.0.0.1 lenses-hq.lenses.svc.cluster.local

when accessing the login page on http://lenses-hq.lenses.svc.cluster.local:8080 (I don’t use any certificate or SSL as it is a dev environment) the default credentials don’t work and the login page is stuck in a loop.

Fixed by adding the configuration below to values.yaml for the helm deployment. secureSessionCookies often tend to not be enforced on localhost.

See documentation for http config securesessioncookies

lensesHq:
  http:
    secureSessionCookies: false
1 Like