Kubernetes Dashboard can not log in with Google browser, the problem can only use Firefox browser login.

Login with Google Chrome, suggesting not private link, click "Advanced" button did not come out, "continued access" of;

Workaround: Run the following command to refresh the Google browser, click on the "Advanced" button will be "continued access"; the figure "192.168.246.200" address is the address Kubernetes UI interface to access your own;

Key && mkdir CD Key
 # generate a certificate 
OpenSSL genrsa--out dashboard.key 2048  
OpenSSL REQ -new -out dashboard.csr the -key dashboard.key -subj '/CN=192.168.246.200 ' 
OpenSSL X509 -req - in dashboard.csr - dashboard.key signkey - OUT dashboard.crt 
 # delete the original certificate Secret 
kubectl the delete Secret Kubernetes-Dashboard-certs -n kube- System
 # create a new certificate Secret 
kubectl the create the Generic Secret Kubernetes-Dashboard-certs the --from -file = the --from dashboard.key -file = -n kube- dashboard.crt System
 # View POD 
kubectl GET POD -n kube- System
# 重启pod 
kubectl delete pod <pod name> -n-kube system

<Pod name> is the name, to check out all of the pod restart;

Guess you like

Origin www.cnblogs.com/nbeee/p/11295168.html