Azure / Azure/azure-cli-extensions

az from PyPI connectedk8s connect error kube-config file

Open
#4,930 3 comments 0 reactions 0 assignees View on GitHub
Auto-Assign Connected Kubernetes customer-reported needs-team-attention question Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

## 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](https://github.com/Azure/azure-cli/issues/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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.