Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to connect remotely to the k8s cluster using kubectl #4459

Open
namgk opened this issue May 5, 2023 · 1 comment
Open

Failed to connect remotely to the k8s cluster using kubectl #4459

namgk opened this issue May 5, 2023 · 1 comment

Comments

@namgk
Copy link

namgk commented May 5, 2023

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.

@maheshreddyuma
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants