Skip to content
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

dashboard apiserver-host param points to a server that does not exist #3472

Closed
minminmsn opened this issue Dec 29, 2018 · 4 comments
Closed

Comments

@minminmsn
Copy link

Environment
Installation method:  
kubernetes binaries install:http://blog.51cto.com/jerrymin/2336502
kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/master/aio/deploy/recommended/kubernetes-dashboard.yaml
Kubernetes version:1.13.1
Dashboard version: 1.10.1
Operating system: Centos7.4

[root@elasticsearch01 yaml]# kubectl logs kubernetes-dashboard-7649fbd576-r4wn2 --namespace=kube-system
2018/12/29 05:52:10 Starting overwatch
2018/12/29 05:52:10 Using apiserver-host location: https://10.2.8.44:6443
2018/12/29 05:52:10 Skipping in-cluster config
2018/12/29 05:52:10 Using random key for csrf signing
2018/12/29 05:52:10 Error while initializing connection to Kubernetes apiserver. This most likely means that the cluster is misconfigured (e.g., it has invalid apiserver certificates or service account's configuration) or the --apiserver-host param points to a server that does not exist. Reason: Get https://10.2.8.44:6443/version: x509: failed to load system roots and no roots provided
Refer to our FAQ and wiki pages for more information: https://github.com/kubernetes/dashboard/wiki/FAQ

@minminmsn
Copy link
Author

use default args
args:
- --auto-generate-certificates
error also 👎
NET::ERR_CERT_INVALID

image

@minminmsn
Copy link
Author

resolved:
$ 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

@richardsonlima
Copy link

@minminmsn this workaround works for me. Thank you !!

@richardsonlima
Copy link

/close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants