azure-cli-extensions icon indicating copy to clipboard operation
azure-cli-extensions copied to clipboard

az from PyPI connectedk8s connect error kube-config file

Open engineering87 opened this issue 2 years ago • 3 comments

Describe the bug

I am working on the creation of a Kubernetes cluster on Azure ARC using Raspberry Pi with Linux Raspbian operating system. As reported in the issue 20476, the mode of installation of azure-cli on this architecture is through PyPI and virtual environment. azure-cli is successfully installed but when I try to connect to the cluster I get the error:

Problem loading the kubeconfig file.Invalid kube-config file. No configuration found.

Related command

azure-cli-env/bin/az connectedk8s connect --name {} --resource-group {}

Expected behavior

Should be able to connect to K8s cluster.

Additional context

Probably the error derives from the different mode of installation and the virtual environment azure-cli-env. Any suggestions to fix pointing to configuration kube-config file?

engineering87 avatar Jun 02 '22 14:06 engineering87

route to CXP team

yonzhan avatar Jun 02 '22 14:06 yonzhan

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @akashkeshari.

Issue Details

Describe the bug

I am working on the creation of a Kubernetes cluster on Azure ARC using Raspberry Pi with Linux Raspbian operating system. As reported in the issue 20476, the mode of installation of azure-cli on this architecture is through PyPI and virtual environment. azure-cli is successfully installed but when I try to connect to the cluster I get the error:

Problem loading the kubeconfig file.Invalid kube-config file. No configuration found.

Related command

azure-cli-env/bin/az connectedk8s connect --name {} --resource-group {}

Expected behavior

Should be able to connect to K8s cluster.

Additional context

Probably the error derives from the different mode of installation and the virtual environment azure-cli-env. Any suggestions to fix pointing to configuration kube-config file?

Author: engineering87
Assignees: -
Labels:

question, customer-reported, Service Attention, needs-team-attention, Connected Kubernetes, Auto-Assign

Milestone: -

ghost avatar Jun 10 '22 03:06 ghost

Adding Service team to take a look into this issue.

@akashkeshari Could you please look into this ask and provide an update ?

navba-MSFT avatar Jun 10 '22 03:06 navba-MSFT