-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
az connectedk8s connect results in an error but kubectl works fine on local #4529
Comments
route to CXP team |
@munishm Apologies for the late reply. Could you please use the most recent version of Azure CLI and update the existing connectedk8s extension and then try to connect?
If the issue resurfaces again, could you please use the |
@munishm I wanted to do quick follow-up to check if you had a chance to look at my above comment. Please follow the above action plan and if that doesn't help, please share the --debug output once you get a chance. Awaiting your reply. |
Hello @navba-MSFT, Thank you for reaching out. Getting the same error even after the upgrade. Attaching the verbose log file: |
@munishm Thanks for getting back. I found another similar issue and it is still open. Azure/azure-cli#16619. I understand that using kubectl you can connect and the issue is only with AzCLI. But the below step is just to isolate the issue. Can you please share the raw contents of your kubeconfig file? Please remove the credentials and other sensitive details. Looks like there's a formatting problem position 3 due to some special character. To post the content without formatting, type 3 backticks |
@munishm A quick follow-up on this to check if you had a chance to look at the above comment. Awaiting your reply. |
Hello @navba-MSFT , Thank you for your reply. This is the Kube config, sensitive data is modified so it's ok.
|
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @akashkeshari. Issue DetailsDescribe the bugaz 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 Errors:
To Reproduce:Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
Expected BehaviorShould be able to connect to local K8s cluster when kubectl is able to connect to it. Environment Summary
Additional ContextIs there another way where I can get more verbose error information? Thank you.
|
@munishm Thanks for getting back. The YAML file looks good to me. I am involving the Service Team right away so that they can look into this issue.
@akashkeshari Could you please look into this issue and provide an update once you get a chance ? Awaiting your reply. |
@akashkeshari Did you get a chance to look into it or may be you can share some pointers on how I can debug and try to resolve it? |
@munishm - Are you still experiencing this issue? I have come across the same today when workthrough the jumpstart for MicroK8s. Local kubectl is fine for my microk8s cluster and others. However when i try the az connectedk8s connect i get: Problem loading the kubeconfig file.unacceptable character #x0000: special characters are not allowed |
Hi TSC-Buddy I got into the same issue when deploying microk8s on locally with the az k8sconnected command what I did to resolve the issue was opened the config file in notepad++ and change the encoding to UTF-8 and it worked all good. Thanks Hopes this helps everyone. |
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:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
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
Additional Context
Is there another way where I can get more verbose error information? Thank you.
The text was updated successfully, but these errors were encountered: