Accessing the Cluster#
Constructing the kubeconfig file#
Once a cluster has been installed with Cluster Forge, the kubeconfig file required to access the cluster can be accessed from the Cluster Details page by clicking the “View Config” button on the application. If the “View Config” button is disabled, it is likely because the Kube-api URL has not been configured for the cluster. This can be done by clicking the “Edit cluster” action for the cluster, in the Clusters page.
Save the file at a secure location on your local machine, for example as ~/.kube/config.
Logging in via kubectl#
Once you have created the kubeconfig file, install the oidc plugin (int128/kubelogin) to ensure that kubectl can use the OIDC authentication method. Once you’ve done this, you can use kubectl, k9s, or any other command line client to access the cluster.
If you are restricted to one or more namespaces, please make sure to include the namespace you have access to in your commands, for example:
kubectl get pods -n <namespace>