Git Product home page Git Product logo

Comments (9)

m839336369 avatar m839336369 commented on June 25, 2024 1

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.

floreks avatar floreks commented on June 25, 2024

I don't see any description of what actually happened and how did you access dashboard? Can you provide more details?

from dashboard.

m839336369 avatar m839336369 commented on June 25, 2024

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
  • matches:
    • path:
      type: PathPrefix
      value: /api
      type: PathPrefix
      value: /metrics
      backendRefs:
    • kind: Service
      name: kubernetes-dashboard-api
      port: 8000
  • matches:
    • path:
      type: PathPrefix
      value: /
      backendRefs:
    • kind: Service
      name: kubernetes-dashboard-web
      port: 8000

from dashboard.

giorgiberia avatar giorgiberia commented on June 25, 2024

did you expose dashboard by changing web's service from clusterip to nodeport?

from dashboard.

giorgiberia avatar giorgiberia commented on June 25, 2024

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.

m839336369 avatar m839336369 commented on June 25, 2024

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
  • matches:

    • path:
      type: PathPrefix
      value: /api
      type: PathPrefix
      value: /metrics
      backendRefs:
    • kind: Service
      name: kubernetes-dashboard-api
      port: 8000
  • matches:

    • 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.

giorgiberia avatar giorgiberia commented on June 25, 2024

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.

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.