-
Notifications
You must be signed in to change notification settings - Fork 8.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
Reordering of metrics in controller HPA resource is causing sync problems #10038
Comments
Since it improves ArgoCD integration and since its a cosmetic change as far as the controller's hpa template goes, I think we can change this asap. I will do the change and update. Whatout for PR here. |
Just to be clear, the commit you asked to be reverted is critically requirement so its not the commit that will be reverted. I will just interchange the current order of cpu & mem spec in the template. Like just pupt memory first and cpu next. |
Yes sure, you are right. The other changes in this commit are totally fine of course :-) |
Same here :) |
@peters5 you can see a 4 line interchange line-numbers PR above. I have done this even without digging into the reordering metrics list capability of HPA. Can you install chart from this branch of my fork and test to see results. meaning hope there is no, hitherto unknown side affect surprise from this 4 line up/down swap. |
Hello @longwuyuan, I think what happens is that kubernetes applies the manifest as it is but argocd for some reason reorders alphabetically the components in the metrics, making the cpu the first in the list and then the memory. Maybe this was correct and needs to be changed back again? For the moment the only way we have is to ignore these differences on argocd. Thanks! |
@peters5 and @ricardojdsilva87 , my request is that you please test it using this change in your local environment. /re-open |
/reopen |
@longwuyuan: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I'm facing the same problem with argocd |
Hello again, Thanks! |
This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach |
* upd: hpa reverse items ordering kubernetes/ingress-nginx#10038 * upd: bump chart version
This already got fixed. Closing for now. /close |
@Gacko: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What happened:
When upgrading the ingress-nginx Helm chart to version 4.7.0 we got the following OutOfSync problem in ArgoCD when using the controller HPA resource:
This problem arises because of commit 06612e6 (PR: #9521) where the order of
cpu
andmemory
in the controller HPA resource was switched.In The ArgoCD project there are also some issues on this topic (like this: argoproj/argo-cd#7846).
The origin of this problem is the HPA controller in Kubernetes which can reorder the metrics list (here is also an issue in upstream Kubernetes: kubernetes/kubernetes#74099)
I think the best idea would be to revert the commit that did the reordering and keep the
memory
beforecpu
in the list.What you expected to happen:
ArgoCD should not show OutOfSync after the Helm chart upgrade
NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.):
Kubernetes version (use
kubectl version
):Environment:
Cloud provider or hardware configuration: Azure
OS (e.g. from /etc/os-release): AKSUbuntu-1804
How was the ingress-nginx-controller installed:
With Helm chart in ArgoCD
Values:
How to reproduce this issue:
Deploy the latest ingress-nginx Helm chart v4.7.0 with controller autoscaling being enabled via ArgoCD and check the ArgoCD UI. It will always show you an OutOfSync on the HPA resource.
Anything else we need to know:
No
The text was updated successfully, but these errors were encountered: