Open LinuxSuRen opened 3 years ago
You can try to execute kubectl get ns --kubeconfig /etc/kubernetes/admin.conf
.
If the above command can work, it is possible that kubeconfig was not updated.
As you said. It works well via kubectl get ns --kubeconfig /etc/kubernetes/admin.conf
.
I did more tests. First, delete the .kube directory via rm -rf ~/.kube
. Then install it again. After the installation was done. I got the following errors:
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Guest what? I don't have the .kube
directory. So I guess this should be a bug exists.
OK, We'll check this issue later.
/kind bug /good-first-issue /help
@LinuxSuRen: This request has been marked as suitable for new contributors.
Please ensure the request meets the requirements listed here.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue
command.
When I finished the cluster creating task via
kk create cluster --with-kubesphere --with-kubernetes v1.17.9
I try to execute a simple command which is
kubectl get ns
. But errors happend. You can see the output below:A special case that is worth noticing. I run the below commands many times on my machine.