-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Description
When using an external kubernetes (openshift start --kubernetes=...), the management console instructs the browser to contact kubernetes with invalid URLs. See the errors in the below screenshot.
Started as:
docker run \
-d \
--privileged \
-v /var/run/docker.sock:/var/run/docker.sock \
--net=host \
openshift/origin \
start master \
--kubernetes=http://localhost:8080 \
--etcd=localhost
So the javascript is telling the browser to use https, when kubernetes is running over http.
It also appears to be instructing the browser to use the hostname passed in --kubernetes when starting openshift. This may not be the appropriate address, as in this case, it's localhost, but from my browser's perspective, it shouldn't be localhost.
The solution to this might be the same as the solution to #813. If a kubernetes proxy is added, the browser can be instructed to contact openshift for everything. Since the openshift daemon handles both the management console, and the API, determining the address the browser needs to use becomes easy.
