-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dashboard login page responds with Unknown error (200): Http failure during parsing for http://10.255.15.136:32260/api/v1/csrftoken/login #9066
Comments
I don't see any description of what actually happened and how did you access dashboard? Can you provide more details? |
I closed Kong and used Istio to create it. The routing rules exposed the web and prompted Then I exposed the authorization in the routing rule, prompting Unauthorized (401): Invalid credentials provided apiVersion: gateway.networking.k8s.io/v1
|
did you expose dashboard by changing web's service from clusterip to nodeport? |
helm upgrade --install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard --create-namespace --namespace kubernetes-dashboard kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard-kong-proxy 8443:443 then i changed kubernetes-dashboard-web service from clusterip to nodeport giving 32260 but getting Unknown error (200): Http failure during parsing for http://10.255.15.136:32260/api/v1/csrftoken/login |
you shuold expose NodePort for kong-proxy rather than board-web. |
I have resolved this issue, as the access is IP access and cannot carry cookies, which contain token verification information, resulting in 401 |
i reinstalled it and exposed kong proxy instead of board-web and got 401 |
/close |
@floreks: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What happened?
https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/
fallowed this guide
created
apiVersion: v1
kind: ServiceAccount
metadata:
name: admin-user
namespace: kubernetes-dashboard
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: admin-user
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
name: admin-user
namespace: kubernetes-dashboard
apiVersion: v1
kind: Secret
metadata:
name: admin-user
namespace: kubernetes-dashboard
annotations:
kubernetes.io/service-account.name: "admin-user"
type: kubernetes.io/service-account-token
and created long lived token successfully
What did you expect to happen?
after inserting token and clicking on sign in i expect to login and access dashboard
How can we reproduce it (as minimally and precisely as possible)?
i had earlier dashboard version even before helm got default.
deleted everything that was associated with that.
kubectl delete deployment kubernetes-dashboard -n kubernetes-dashboard
kubectl delete service kubernetes-dashboard -n kubernetes-dashboard
kubectl delete deployment dashboard-metrics-scraper -n kubernetes-dashboard
kubectl delete service dashboard-metrics-scraper -n kubernetes-dashboard
kubectl delete replicaset -l k8s-app=kubernetes-dashboard -n kubernetes-dashboard
kubectl delete secret kubernetes-dashboard-certs -n kubernetes-dashboard
kubectl delete serviceaccount kubernetes-dashboard -n kubernetes-dashboard
kubectl delete secret kubernetes-dashboard-csrf kubernetes-dashboard-key-holder -n kubernetes-dashboard
and installed using helm
helm upgrade --install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard --create-namespace --namespace kubernetes-dashboard
Release "kubernetes-dashboard" does not exist. Installing it now.
NAME: kubernetes-dashboard
LAST DEPLOYED: Tue May 21 12:20:57 2024
NAMESPACE: kubernetes-dashboard
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
*** PLEASE BE PATIENT: Kubernetes Dashboard may need a few minutes to get up and become ready ***
when everything was ready
i did what i described in "What happened?" section
Anything else we need to know?
No response
What browsers are you seeing the problem on?
Chrome, Firefox
Kubernetes Dashboard version
kubernetes-dashboard-7.4.0
Kubernetes version
v1.30.1
Dev environment
i am not running dashboard locally
The text was updated successfully, but these errors were encountered: