Skip to content

az connectedk8s connect results in an error but kubectl works fine on local #4529

@munishm

Description

@munishm

Describe the bug

az connectedk8s connect results in Kube config parsing error but kubctl command works fine on the machine. I can connect to local running Microk8s cluster either via kubectl or k9s. I also parsed the kube config externally to see if there is any issue with the config file but didn't find any discrepancy.

Command Name
az connectedk8s connect Extension Name: connectedk8s. Version: 1.2.5.

Errors:

Problem loading the kubeconfig file.unacceptable character #x0000: special characters are not allowed
  in "C:\Users\Administrator/.kube/config", position 3

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az connectedk8s connect --name {} --resource-group {} --location {} --tags {} {}

Expected Behavior

Should be able to connect to local K8s cluster when kubectl is able to connect to it.

Environment Summary

Windows-10-10.0.19041-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.30.0 *
azure-cli-ml 1.37.0

Extensions:
azure-cli-ml 1.37.0
connectedk8s 1.2.5

Additional Context

Is there another way where I can get more verbose error information? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions