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

问题原因是需要创建证书。

解决办法来自GitHub:https://github.com/kubernetes/dashboard/issues/3472

 

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

上一篇:Etcd集群搭建(证书通信)


下一篇:Grafana监控告警通知邮件/钉钉