-
Notifications
You must be signed in to change notification settings - Fork 430
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
AzureManagedControlPlane - failed to reconcile kubeconfig secret, unable to retrieve the complete list of server APIs. #4738
Comments
Are you using AAD Pod identity or environment variables to set credentials? It was deprecated since v1.13.0. See the docs for more info on identity changes: https://capz.sigs.k8s.io/topics/multitenancy Looking at the logs, there may also be something wrong with the CNI on the workload cluster. |
We are using AzureClusterIdentity with ServicePrincipal.
However when we do
Just to confirm our secrets configuration:
|
@itodorova1 Can you share your cluster template? It could be something unrelated to secrets. It may also help to create a thread in our Slack to help us follow-up faster |
This is example of one of our clusters:
|
Sorry for not catching this earlier, but I think you're missing the |
Appologies, i the complete AzureClusterIdentity template is:
We have in total 5 workload clusters and the error persist for all of them:
We are working on reproducing the issue in lab environment. Do you think that there are any chnages that might have impacted us between 1.11.4 and 1.14.2? For now we do not see any reason for that behaviors. |
@willie-yao We were able to recreate the issue in a lab environment. |
@itodorova1 Good find! Are you saying that the key-value pair was removed for v1.5 and added back in v1.6? This does seem like unusual behavior, but I think editing the kubeconfig secret manually seems fine for me as a temporary fix. @jackfrancis @nojnhuh wdyt? I'll try and reproduce this on my end and see if it's a CAPI issue. It could be worth creating an issue in CAPI as well. |
It seems like this doc PR in CAPI is related: kubernetes-sigs/cluster-api#9080 The wording in there suggests that adding the label to the kubeconfig is a recommended approach. |
I can see where CAPZ only creates new Secrets with the label but does not add it to existing ones which I would call a bug. |
Ah I see where the bug is coming from. Will work on a fix! Thanks @nojnhuh |
/kind bug
[Before submitting an issue, have you checked the Troubleshooting Guide?]
What steps did you take and what happened:
After recent Cluster API upgrade from 1.11.4 to 1.14.2, we see the following error on multiple worker clusters:
curl and telnet tests performed towards the APIs - not working
What did you expect to happen:
CAPI does not have connection with the cluster's APIs, we have not specifically established such in the past.
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Is this expected behavior? We did not have the issue in tha previous versions.
Environment:
kubectl version
): 1.28.3/etc/os-release
): UbuntuThe text was updated successfully, but these errors were encountered: