-
Notifications
You must be signed in to change notification settings - Fork 75
list_pod_for_all_namespaces throws Unauthorized #165
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
Comments
Thanks for reporting the issue. It is self-hosted cluster or hosted by a cloud provider? Could you show your kubeconfig masking some sensitve data (certs, IPs etc.)? |
It's provided by Azure. apiVersion: v1
clusters:
- cluster:
certificate-authority-data: ...
server: ...
name: aks-foo
contexts:
- context:
cluster: aks-foo
namespace: foo
user: clusterUser_rg-foo_aks-foo
name: aks-foo
current-context: aks-foo
kind: Config
preferences: {}
users:
- name: clusterUser_rg-foo_aks-foo
user:
auth-provider:
config:
access-token: ...
apiserver-id: ...
client-id: ..
config-mode: "1"
environment: AzurePublicCloud
expires-in: "4019"
expires-on: "1636715674"
refresh-token: ...
tenant-id: ...
name: azure |
Sorry, authentication to Azure AKS is not supported yet, #31 |
Ah, I see. Sorry, I missed that issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to list the pods in a kubernetes cluster that I'm connected to using a VPN.
Running
kubectl get pods --all-namespaces
works fine.Calling
list_pod_for_all_namespaces
with the synchronous library (kubernetes
) also works:When using
kubernetes_asyncio
, I get the following error:Thank you
The text was updated successfully, but these errors were encountered: