-
Notifications
You must be signed in to change notification settings - Fork 183
no config file found: If installed by kubeadm #110
Comments
The kubeconfig file you are looking for is at /etc/kubernetes/admin.conf on the kubectl master node. You need to sudo to see this file. I copied this file to my user space at /home/myuser/admin.conf, did a chown to my user, and then scp'd the file to my app's git repo. Then I was able to access the kubectl master node remotely via pykube using the credentials in the admin.conf file
|
Hi ericharnold! I found the admin.conf file but I'm getting below error:
Thanks |
You may have SSL cert issues based on the hostnames you assigned to your nodes before you deployed kubeadm for the first time. We found that we had to assign fully qualified hostnames in Ubuntu in the cluster.local domain before we installed kubeadm. For example we set hostnames to node1.cluster.local, node2.cluster.local, etc. This includes updating both the /etc/hostname and /etc/hosts files using this name. Then we installed kubeadm init and kubeadm join and all the K8s nodes now have the fully qualified hostname when you display kubectl get nodes. This was also necessary to find the pod logs in the Kubernetes dashboard web interface. It seems that kube-dns depends on this. |
use insecure_url for kube-apiserver OR use kubectl proxy may resolve it. |
I have install kubernetes by using
kubeadm
(http://kubernetes.io/docs/getting-started-guides/kubeadm/).I didn't find any
config
file.Thanks
The text was updated successfully, but these errors were encountered: