-
Notifications
You must be signed in to change notification settings - Fork 93
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
snap installed kubelogin fails to resolve DNS names #231
Comments
the snap version runs in a sandbox environment and doesn't have access to your home directory and potentially networking. I tried to submit the change to enable home directory access but got rejected. So I'd say snap install is not fully supported |
I'm experiencing the same problem via Snap. Does anyone have a workaround that doesn't involve installation via homebrew (Ubuntu Server 22.04.2 LTS)? |
Should it help anyone, I removed kubelogin via Snap and my existing kubectl installation and then installed both components via: sudo az aks install-cli |
We have the exact same issue in Azure DevOps Pipelines using service principals. We installed the snap version, first we just did a wget specific version but then we moved to a snap install in cloud-init of our private agents. All pipeline authentication blown. Snap install is certainly not recommended if you use Azure DevOps Pipelines! |
I don't even understand why this snap is available. Is there a way to mark it as broken and not available so that innocent people don't download it thinking it works and waste hours? |
Would following install method not solve the issue mentioned in this issue?
|
I'm on Ubuntu 22.10. I installed both
kubectl
andkubelogin
viasnap install
. I'm trying to connect to an Azure Kubernetes cluster.az aks get-credentials
updated my ~/.kube/config to usekubelogin
, but whenever I try tokubectl get pods
, I get this error:Why is it trying to use [::1]? My /etc/resolv.conf has
nameserver 8.8.8.8
andnameserver 1.1.1.1
. I don't have anything listening on [::1]:53. I have systemd-resolved listening on 127.0.0.53:53.(For the record,
kubelogin
v0.0.28 extracted from kubelogin-linux-amd64.zip and placed into ~/.local/bin/ works fine. Well. Doesn't exhibit DNS problems. It gets stuck after telling me to open a web page, but that's a different problem.)The text was updated successfully, but these errors were encountered: