Unable to connect to the server: x509: certificate signed by unknown authority while installing dashboard

Getting "Unable to connect to the server: x509: certificate signed by unknown authority" while installing dashboard using kubectl create -f ``` kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/aio/deploy/recommended/kubernetes-dashboard.yaml```. Cluster is working fine otherwise:(. Please help.
1 Like

end up with same problem
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/62e44c867a2846fefb68bd5f178daf4da3095ccb/Documentation/kube-flannel.yml
Unable to connect to the server: x509: certificate signed by unknown authority
lp
kubectl get nodes
NAME STATUS ROLES AGE VERSION
openkubelin01 NotReady master 31m v1.15.0