According to this documentation, we can connect our k8s cluster just by running our connect_cluster.sh
script.
While that indeed makes it working to use kubectl
and interact with the cluster, it is not sufficient to use with Lens IDE.
That's probably because of the way the cluster user authenticates (with access token). To make it work with Lens, perform the following steps (as documented here):
/root/.kube/config
filek8sm.env-8930174839.hidora.com
hostname with the k8sm node's ip addressThen, Lens will be able to connect to the remote k8s cluster. Alternatively, you can also
/root/.kube/config
filek8sm.env-8930174839.hidora.com
hostname with the k8sm node's ip address