Comments (9)
helm upgrade --install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard --create-namespace --namespace kubernetes-dashboard after i ran this command i was shown this.
kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard-kong-proxy 8443:443 and ran this. tried access with http://10.255.15.136:8443 was not accessible
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.
from dashboard.
I don't see any description of what actually happened and how did you access dashboard? Can you provide more details?
from dashboard.
I closed Kong and used Istio to create it. The routing rules exposed the web and prompted
Unknown error (200): Http failure during parsing for http://10.255.15.136:32260/api/v1/csrftoken/login
Then I exposed the authorization in the routing rule, prompting Unauthorized (401): Invalid credentials provided
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: kubernetes-dashboard-http-route
namespace: kubernetes-dashboard
spec:
parentRefs:
- name: gateway
namespace: istio-system
rules: - matches:
- path:
type: PathPrefix
value: /api/v1/login - path:
type: PathPrefix
value: /api/v1/csrftoken/login - path:
type: PathPrefix
value: /api/v1/me
backendRefs: - kind: Service
name: kubernetes-dashboard-auth
port: 8000
- path:
- matches:
- path:
type: PathPrefix
value: /api
type: PathPrefix
value: /metrics
backendRefs: - kind: Service
name: kubernetes-dashboard-api
port: 8000
- path:
- matches:
- path:
type: PathPrefix
value: /
backendRefs: - kind: Service
name: kubernetes-dashboard-web
port: 8000
- path:
from dashboard.
did you expose dashboard by changing web's service from clusterip to nodeport?
from dashboard.
helm upgrade --install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard --create-namespace --namespace kubernetes-dashboard
after i ran this command i was shown this.
kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard-kong-proxy 8443:443
and ran this.
tried access with http://10.255.15.136:8443
was not accessible
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
from dashboard.
I closed Kong and used Istio to create it. The routing rules exposed the web and prompted Unknown error (200): Http failure during parsing for http://10.255.15.136:32260/api/v1/csrftoken/login
Then I exposed the authorization in the routing rule, prompting Unauthorized (401): Invalid credentials provided
apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: kubernetes-dashboard-http-route namespace: kubernetes-dashboard spec: parentRefs:
name: gateway
namespace: istio-system
rules:matches:
- path:
type: PathPrefix
value: /api/v1/login- path:
type: PathPrefix
value: /api/v1/csrftoken/login- path:
type: PathPrefix
value: /api/v1/me
backendRefs:- kind: Service
name: kubernetes-dashboard-auth
port: 8000matches:
- path:
type: PathPrefix
value: /api
type: PathPrefix
value: /metrics
backendRefs:- kind: Service
name: kubernetes-dashboard-api
port: 8000matches:
- path:
type: PathPrefix
value: /
backendRefs:- kind: Service
name: kubernetes-dashboard-web
port: 8000
I have resolved this issue, as the access is IP access and cannot carry cookies, which contain token verification information, resulting in 401
Using domain name access can solve the problem
from dashboard.
helm upgrade --install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard --create-namespace --namespace kubernetes-dashboard after i ran this command i was shown this.
kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard-kong-proxy 8443:443 and ran this. tried access with http://10.255.15.136:8443 was not accessible
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/loginyou shuold expose NodePort for kong-proxy rather than board-web.
i reinstalled it and exposed kong proxy instead of board-web and got 401
created token and accessed dashboard
thank you
from dashboard.
Related Issues (20)
- Delete resource should have an option to choose the deletion cascading strategy HOT 3
- Setup HTTPS for Kubernetes Dashboard HOT 3
- Broken link to Dashboard Tour on default landing page HOT 2
- kubernetes dashboard give fail when use custom dns. HOT 2
- Default Helm chart installation fails because of Kong configuration issue: could not prepare Kong prefix at /kong_prefix: nginx configuration is invalid (exit code 1): HOT 3
- k3s: Make ingress.tls completely optional. HOT 2
- With Ingress to reach the svc , the expose site report error /api/v1/login not found HOT 4
- Ingress not allowed when kong is disabled HOT 3
- Dashboard helm chart 7.3.2 no graphics HOT 14
- auth via kubeconfig HOT 2
- difficulty getting started HOT 4
- Helm repository broken - 404 Not Found HOT 2
- Not able to install kubernetes-dashboard helm chart with default values file HOT 3
- Error installing dashboard on docker for desktop Macos HOT 2
- What happened to the `--enable-skip-login` flag? HOT 2
- Dashboard Helm Chart incompatible with Traefik ingress controller HOT 2
- Helm chart Kong crashes in GKE HOT 4
- Helm values Affinity does not get applied to Kong Deployment HOT 2
- 🚨 Helm `metrics-server` Deployment uses `web` `env` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dashboard.