kURL icon indicating copy to clipboard operation
kURL copied to clipboard

Failed to connect remotely to the k8s cluster using kubectl

Open namgk opened this issue 2 years ago • 1 comments

Observed in Azure kurl installation, sudo bash tasks.sh generate-admin-user put the private IP of the cluster instead of the public one.

Thus the generated kube config cannot be used outside of the machine.

To reproduce, create an Azure VM and install a k8s cluster using kurl. Follow https://kurl.sh/docs/install-with-kurl/connecting-remotely to connect remotely.

Expected: able to connect.

namgk avatar May 05 '23 18:05 namgk

Hello namgk

I face similar issue in azure while using RHEL 9.2.

You just need to pass the public IP while running install.sh script.

1 .cat install.sh | sudo bash -s public-address="201.198.25.212"

  1. sudo bash tasks.sh generate-admin-user

Now its generate a root.conf file you can use to connect remotely to your K8 cluster

maheshreddyuma avatar Feb 13 '24 15:02 maheshreddyuma