kubernetes-client/python

kubelogin not found error while client reading kubeconfig file

Open

#2093 aperta il 27 lug 2023

Vedi su GitHub
 (4 commenti) (1 reazione) (0 assegnatari)Python (3323 fork)batch import
help wantedkind/feature

Metriche repository

Star
 (6225 star)
Metriche merge PR
 (Merge medio 10g 3h) (2 PR mergiate in 30 g)

Descrizione

On using python client in azure function to do custom operation on k8s object in azure cluster and Azure cluster config is configured to use kubelogin for auth via service principal.

"kubelogin" not found error thrown post using standard python client for doing custom operation.

Is there any fix for using python client using kubeconfig having kubelogin as auth mechanism via service principal ? or there are separate apis for that ?

Kubernetes version (kubectl version): 1.26 OS (e.g., MacOS 10.13.6): linux Python version (python --version): 3.10

Guida contributor