Giter Site home page Giter Site logo

Comments (19)

tiagorosendo avatar tiagorosendo commented on August 29, 2024 12

try put / after proxy, this work to me

from acs.

AlexeyAtIgloo avatar AlexeyAtIgloo commented on August 29, 2024 3

@doggy8088 try this http://localhost:8001/ui/ or that http://localhost:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy/ url (assuming you are doing kubectl proxy)

from acs.

AlexeyAtIgloo avatar AlexeyAtIgloo commented on August 29, 2024 2

@tiagorosendo Yep that did it, but interestingly http://localhost:8001/ui use to redirect to:
http://localhost:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy/
(just tested on latest version on minikube)

now it does not add / at the end of URL.
redirect from http://localhost:8001/ui/works fine.

Is that a misconfiguration of api-server or new behaviour?

from acs.

doggy8088 avatar doggy8088 commented on August 29, 2024 1

Neither http://localhost:8001/ui nor http://localhost:8001/ui/ works.

I finally realized that it will work if you append a slash ( / ) after the http://localhost:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy url which the RIGHT url will be http://localhost:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy/ and all the problem will gone. 😢

It just a simply HTTP redirection issue but nasty. Not sure which k8s component should take the responsibility? kube-dashboard or kube-proxy?

from acs.

oriyastyle avatar oriyastyle commented on August 29, 2024

I am experiencing the same issue and putting / after proxy did not resolve the error. Kubectl client version is 1.8.1 and server version is 1.7.7. Any other suggestions?

from acs.

oriyastyle avatar oriyastyle commented on August 29, 2024

Update - not sure why but the dashboard worked this morning once you put / after proxy.

from acs.

doggy8088 avatar doggy8088 commented on August 29, 2024

@AlexeyAtIgloo I got the same issue just exactly like you.

@tiagorosendo What do you mean try put / after proxy?

from acs.

doggy8088 avatar doggy8088 commented on August 29, 2024

@AlexeyAtIgloo Yes, I do put slash ( / ) in end of this url. The problem is still exist.

from acs.

doggy8088 avatar doggy8088 commented on August 29, 2024

I also tried on creating ACS for Windows Containers. Same issue. K8S Web UI unable to be shown correctly.

Here are the steps to reproduce this problem:

  1. az group create -n K8SDemoACS7 -l eastus2
  2. az acs create -t kubernetes -g K8SDemoACS7 -l eastus2 -n myK8sCluster7 --agent-count=1 --windows --admin-username azueruser --admin-password Password1234 > acs_k8s_create.log
  3. az acs kubernetes get-credentials --resource-group=K8SDemoACS7 --name=myK8sCluster7
  4. az acs kubernetes browse --resource-group=K8SDemoACS7 --name=myK8sCluster7

Then open http://localhost:8001/ui/ using any browser.

from acs.

JiangtianLi avatar JiangtianLi commented on August 29, 2024

@AlexeyAtIgloo Does your cluster have Windows agent node or it is a Linux cluster only?

from acs.

doggy8088 avatar doggy8088 commented on August 29, 2024

@JiangtianLi Due to his command: az acs create --orchestrator-type kubernetes --resource-group $CLUSTERNAME --name $CLUSTERNAME --master-count 3 --agent-count 3 --ssh-key-value <sensitive> --api-version 2017-07-01. That is a Linux agent node only.

from acs.

JiangtianLi avatar JiangtianLi commented on August 29, 2024

@doggy8088 Thanks. That's what I thought. I was told that on a yammer thread, it mentioned the issue is about Windows. So just curious.

from acs.

JackQuincy avatar JackQuincy commented on August 29, 2024

I tried this with a 1.7.5 cluster just barely
calls that worked:
http://localhost:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy
http://localhost:8001/ui
I got the same error as the original poster on
http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy

that error might be related to azure docker sending large packets. Not sure. Side note I am on an old version of kubectl 1.5.3

from acs.

ams0 avatar ams0 commented on August 29, 2024

All of a sudden my dashboard is back. I didn't do anything, really, just wait it out. Before (i.e. about 12 hours ago), I got this error:

$ curl http://localhost:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy
 <!doctype html> <html ng-app="kubernetesDashboard"> <head> <meta charset="utf-8"> <title ng-controller="kdTitle as $ctrl" ng-bind="$ctrl.title()"></title> <link rel="icon" type="image/png" href="assets/images/kubernetes-logo.png"> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="static/vendor.9aa0b786.css"> <link rel="stylesheet" href="static/app.8ebf2901.css"> </head> <body> <!--[if lt IE 10]>
      <p class="browsehappy">You are using an <strong>outdated</strong> browser.
      Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
      experience.</p>
    <![endif]--> <kd-chrome layout="column" layout-fill=""> </kd-chrome> <script src="static/vendor.840e639c.js"></script> <script src="api/appConfig.json"></script> <script src="static/app.68d2caa2.js"></script> </body> </html>

And just now, same cluster, same browser, works fine.

from acs.

AlexeyAtIgloo avatar AlexeyAtIgloo commented on August 29, 2024

@ams0 I don't think thats an error, thats a standard response to the curl client. I get same output on a working dashboard.

curl http://localhost:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy
 <!doctype html> <html ng-app="kubernetesDashboard"> <head> <meta charset="utf-8"> <title ng-controller="kdTitle as $ctrl" ng-bind="$ctrl.title()"></title> <link rel="icon" type="image/png" href="assets/images/kubernetes-logo.png"> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="static/vendor.9aa0b786.css"> <link rel="stylesheet" href="static/app.8ebf2901.css"> </head> <body> <!--[if lt IE 10]>
      <p class="browsehappy">You are using an <strong>outdated</strong> browser.
      Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
      experience.</p>
    <![endif]--> <kd-chrome layout="column" layout-fill=""> </kd-chrome> <script src="static/vendor.840e639c.js"></script> <script src="api/appConfig.json"></script> <script src="static/app.68d2caa2.js"></script> </body> </html>

from acs.

AlexeyAtIgloo avatar AlexeyAtIgloo commented on August 29, 2024

As we have a workaround with a slash at the end, I don't mind closing this as it is nothing major.

from acs.

doggy8088 avatar doggy8088 commented on August 29, 2024

It's already an known issue here and been listed on kubernetes/dashboard's FAQ here: I am seeing 404 errors when trying to access Dashbord. Dashboard resources can not be loaded.

from acs.

doggy8088 avatar doggy8088 commented on August 29, 2024

@AlexeyAtIgloo I think you can close this issue on your own.

from acs.

AlexeyAtIgloo avatar AlexeyAtIgloo commented on August 29, 2024

@doggy8088 thanks for references. Closing it as it should be fixed in future API server.

from acs.

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.