New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i can access dashboard in Linux with https://masternodeIP:port with googlechrome, but can't do that in Windows. #2954

Closed
GoodJoey opened this Issue Apr 10, 2018 · 4 comments

Comments

Projects
None yet
4 participants
@GoodJoey
Copy link

GoodJoey commented Apr 10, 2018

Environment

i can access dashboard in Linux browser with https://masternodeIP:port , but can't access in Windows.
the computers are all in the same local network, and can reach each other.
the error code shown in the windows' browser is NET::ERR_CERT_INVALID.

Dashboard version: 1.8.3
Kubernetes version: 1.9
Operating system: linux/ windows
Node.js version:
Go version:
@weapon008

This comment has been minimized.

Copy link

weapon008 commented Apr 13, 2018

我之前也有这个问题。后来我通过自己生成证书文件后这个问题没有了。证书生成的文档:https://github.com/kubernetes/dashboard/wiki/Certificate-management

@xuchenhao001

This comment has been minimized.

Copy link

xuchenhao001 commented Apr 30, 2018

@GoodJoey I met the same problem.
When I create a dashboard deployment, this solve the NET::ERR_CERT_INVALID problem of chrome:

$ mkdir certs
$ openssl req -nodes -newkey rsa:2048 -keyout certs/dashboard.key -out certs/dashboard.csr -subj "/C=/ST=/L=/O=/OU=/CN=kubernetes-dashboard"
$ openssl x509 -req -sha256 -days 365 -in certs/dashboard.csr -signkey certs/dashboard.key -out certs/dashboard.crt
$ kubectl create secret generic kubernetes-dashboard-certs --from-file=certs -n kube-system
$ kubectl create -f kubernetes-dashboard.yaml
@cheld

This comment has been minimized.

Copy link
Member

cheld commented May 1, 2018

https://masternodeIP:port - not sure which port you mean. Most likely your setup only allows local bindings to this port. Use kubectl proxy to connect from outside to apiserver. Or expose Dashboard with nodeport or loadbalancer. Make sure to have proper SSL & authentication in place

@GoodJoey

This comment has been minimized.

Copy link

GoodJoey commented May 2, 2018

@xuchenhao001
thanks, i will take a try
@cheld
by https://masternodeIP:port , i meant i can access the dashboard from another linux machine.
but can't access the dashboard from another windows machine. seems like some certification error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment