Skip to content

Manual Cluster Management

After you've created your cluster, you may want additional detailed control or insight that kubegrid doesn't provide. Here's how to access your cluster for manual management.

kubectl configuration

From the Clusters shortcut menu item, select the wrench icon of the cluster that you'd like to access, then click View this cluster from the pop-up menu.

Next, click the View Config Files button. This will expose two additional buttons: Download SSH Key and Download k8s Config.

alt text

Select Download k8s Config. This will download a file to your computer. Rename/move this file to ~/.kube/config. If you have another kubeconfig file already there, you can alternatively leave the file where it is and include --kubeconfig=[path_to_downloaded_file] in any kubectl commands.

Now, you can access your cluster using kubectl. See the kubectl cheat sheet or other Kubernetes resources for details on using kubectl to manage your cluster.

SSH

You can also access your cluster via SSH. From the cluster details page of the cluster you want to access, click the View Config Files button. This will expose two additional buttons: Download SSH Key and Download k8s Config. Click Download SSH Key. This will download a private key that you can use to access any of the nodes in your cluster via SSH. kubegrid uses coreos for linux, so the username for all linux nodes, including all master nodes, is core, unless you are using Azure as your hosting provider, in which case the username is azureuser.

The public IP address for your master node is shown at the top of the cluster details page. alt text

To ssh into an instance, then, an example for a node that's running on IP address 54.244.146.195 would be:
ssh -i ~/Downloads/ssh.kubegrid [email protected].