-
Notifications
You must be signed in to change notification settings - Fork 46
Unable to get the queue value returns from external metrics #70
Comments
Based on the logs from the pod of the adapter, it seems like it still queries the ExternalMetric and CustomMetric API with the old version (v1alpha1). I found both of that has already moved to v1alpha2 from v1alpha1 around 5 months ago, but the docker image seems like still leave the old version. Should we need to update the docker image? The last image was created at the end of last year. |
Thanks for the detailed report. You are correct it is the wrong image. |
@jsturtevant Got it. Thank you so much! |
Hi I am facing the same issue, looking at the logs I can see that it is still using v1alpha1 to query custommetrics.azure.com. Please can you give suggest a workaround for this. I've posted the logs below. |
Built the image locally to pick up the latest changes. Working now 👍 |
Hi @jsturtevant, |
Will anyone from Microsoft looking into this issue? Leaving a |
Sorry for the delay. The latest image with the support for v1alpha2 schemas:
You can find all the images version at https://mcr.microsoft.com/v2/k8s/metrics/adapter/tags/list and latest is tagged with the highest version. |
Describe the bug
I have followed the example of how to scale using Service Bus Queue as an external metric. But I was unable to get the queue value by running the following command:
The external metric API seems to work well.
I appreciate for your kind assistance. Thank you so much!
To Reproduce
Create a AKS cluster through Azure Portal
Validate the Metric Server by running
kubectl get --raw "/apis/metrics.k8s.io/v1beta1/nodes"
command.Install Helm on AKS
Create a service bus in Azure
Enable Access to Azure Resources by configuring a service principal
Since I don't have the go language environment, I used the Service Bus Explorer to create messages as producer.
Configure Secret for consumer pod
Deploy Consumer
Deploy the adapter
Configure Metric Adapter with metrics
Deploy the HPA
Expected behavior
I can get the queue value by running the following command:
Kubernetes version (
kubectl version
):Logs (
kubectl logs <metric adapter pod id>
)kubectl logs sample-release-azure-k8s-metrics-adapter-69556544c9-c7pt6
Additional context
kubectl describe hpa consumer-scaler
The text was updated successfully, but these errors were encountered: