-
Notifications
You must be signed in to change notification settings - Fork 92
Cannot connect to cluster installed via kubeadm init
#78
Comments
you are trying to access the cluster from your home network correct ? |
Correct. |
I also have a VPN server setup on the same machine as my cluster, 192.168.1.7, and it does not work for me with or without the vpn enabled. I am able to connect to other services on the same IP. |
Having the same issue as well, would like to know the solution. |
@javsalgar could you give us some feedback on this, since you know kubeadm so well |
@javsalgar did you get any chance to test this ? |
With the recent addition of Token auth, you can create a Service Account (With the cluster-admin clusterrole for all permissions), get the token for that, and auth that way. This works regardless of cluster creation, and works with my kubeadm spun-up RPI cluster. |
@dvdmuckle's solution worked perfectly for me. To do this, I did the following:
I placed that token value into the cabin login screen, and used For more info, these links were a great read: (Kubernetes Role-Based Authentication)[https://kubernetes.io/docs/admin/authorization/rbac/] Thanks so much! |
If you created an SA for the Tiller part of Helm with the cluster-admin role, you can use that token as well. I'd suggest not doing this for any production cluster, and instead creating a locked down SA specifically for Cabin, but for my little RPI cluster or something similar, it's fine. |
I'm having trouble connecting to my Kubernetes cluster via Cabin. It is running on a home lab Ubuntu 17.10 server, and it was brought up via the "kubeadm init" method. I'm trying to connect via the Cabin Android app from the Google Play Store (appears to be version 0.4.1).
I copied the
default-token-xxxx
from the Kubernetes Dashboard, and pasted it into Cabin's "Add Cluster" view. I set the cluster url to "https://192.168.1.7:6443", which is what is in my kubectl config file, and verified that that url is accessible in Chrome (although unauthenticated, because I didn't use the token). I installed the certificate that was also present in the "default-token-xxxx" Kubernetes secret.After filling in the above information, Cabin immediately reports that my cluster is "down".
Any ideas?
Cabin looks like a really nice and well-made app. This is the kind of stuff Kubernetes needs. Thank you for your hard work!
The text was updated successfully, but these errors were encountered: