Can not login with traefik ingress #9735
Unanswered
archmagece
asked this question in
Q&A
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank for your response. but my Ingress link to kong service. I use
My ingresskind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
labels:
helm.sh/chart: kubernetes-dashboard-7.10.0
app.kubernetes.io/instance: kubernetes-dashboard
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: kubernetes-dashboard
annotations:
traefik.ingress.kubernetes.io/router.middlewares: "redirect-to-web@file"
traefik.ingress.kubernetes.io/router.entrypoints: web, websecure
traefik.ingress.kubernetes.io/whitelist-source-range: "192.168.0.0/16"
traefik.ingress.kubernetes.io/router.tls: "false"
name: kubernetes-dashboard
spec:
ingressClassName: traefik
rules:
- host: dashboard.internal
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: kubernetes-dashboard-kong-proxy
port:
number: 80 Login ResultWhen I login through Ingresserror like below
{
"ErrStatus": {
"metadata": {},
"status": "Failure",
"message": "MSG_LOGIN_UNAUTHORIZED_ERROR",
"reason": "Unauthorized",
"code": 401
}
} When I login directly to kubernetes-dashboard-kong-proxy with same tokenhttp://localhost:43859/#/login
{"name":"admin-user","authenticated":true} Is it still same? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It works fine with service port forward.
but not working with ingress.
with this error
I don't know Why?
installed it by helm
helm repo add kubernetes-dashboard https://kubernetes.github.io/dashboard/
helm install kubernetes-dashboard --values value-kubedashboard.yaml --namespace kubernetes-dashboard
value-kubedashboard.yaml
Use admin-user token to login
https://github.com/kubernetes/dashboard/blob/master/docs/user/access-control/creating-sample-user.md
I've create service account as shown in the article above
kubectl -n kubernetes-dashboard create token admin-user
Beta Was this translation helpful? Give feedback.
All reactions