Comments (19)
try put / after proxy, this work to me
from acs.
@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.
@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.
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.
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.
Update - not sure why but the dashboard worked this morning once you put / after proxy.
from acs.
@AlexeyAtIgloo I got the same issue just exactly like you.
@tiagorosendo What do you mean try put / after proxy?
from acs.
@AlexeyAtIgloo Yes, I do put slash ( / ) in end of this url. The problem is still exist.
from acs.
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:
az group create -n K8SDemoACS7 -l eastus2
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
az acs kubernetes get-credentials --resource-group=K8SDemoACS7 --name=myK8sCluster7
az acs kubernetes browse --resource-group=K8SDemoACS7 --name=myK8sCluster7
Then open http://localhost:8001/ui/ using any browser.
from acs.
@AlexeyAtIgloo Does your cluster have Windows agent node or it is a Linux cluster only?
from acs.
@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.
@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.
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.
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.
@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.
As we have a workaround with a slash at the end, I don't mind closing this as it is nothing major.
from acs.
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.
@AlexeyAtIgloo I think you can close this issue on your own.
from acs.
@doggy8088 thanks for references. Closing it as it should be fixed in future API server.
from acs.
Related Issues (20)
- How upgrade Kubernetes version to 1.8.x in ACS HOT 3
- Very different Kubernetes clusters in different locations HOT 3
- ETA for Japan availability of --orchestrator-version
- Cluster broken after upgrade to K8s 1.8.9 HOT 1
- PersistantVolumeClaims changing to Read-only file system suddenly. HOT 6
- Commas in NSG rules break the ability to create services in ACS K8S clusters HOT 2
- BadHostKeyException when attempting az acs kubernetes get-credentials HOT 1
- Standard NC_6 VM shows 0 GPUs
- kubectl cluster-info not showing "kubernetes-dashboard is running at"
- AttachDetach Failing for k8s 1.7.7 HOT 3
- Volume mount with Kubernetes fails HOT 8
- docker stack deploy requires API version 1.25
- get hpa
- How do I upgrade a cluster in Azure ACS HOT 1
- [enhancement] Find nearby stations HOT 2
- Azure acs error HOT 1
- System.AggregateException, (Docker API responded with status code=BadRequest, response={"message":"network HOT 8
- AKS cluster nor getting created HOT 2
- Azure Container Instance in Terminated State, but Status is Running HOT 1
- This repo is missing important files
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 acs.