https://rancher.com/ logo
Title
m

millions-army-65742

11/15/2022, 8:06 PM
I installed RKE2 "Air-Gap Install" from here https://docs.rke2.io/install/airgap/ , I started the service ,the service is on and running, but wen i try "kubectl get nodes" it gives me "The connection to the server localhost:8080 was refused - did you specify the right host or port?" , do I need to install the agent as well? what am I doing wrongs?
g

gray-lawyer-73831

11/15/2022, 9:07 PM
export KUBECONFIG=/etc/rancher/rke2/rke2.yaml
I think should resolve that issue for you
m

millions-army-65742

11/16/2022, 12:09 AM
thanks alot, it solve the problem