-
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
HorizontalPodAutoscaler api version prevents upgrade to K8s version 1.25+ #9728
Comments
@plynch-magnolia this is a concern and needs to be addressed asap if a genuine bug because #9348 is supposed to have taken care of this. So kindly answer the questions asked in a new issue template by editing your original post description of the issue |
I am installing via a terraform helm chart, but my terraform plan fails with the error given above. It seems I will need to specify the value as a parameter. The default value, found here https://github.com/kubernetes/ingress-nginx/blob/main/charts/ingress-nginx/templates/default-backend-hpa.yaml still shows the old value which likely just needs to be updated. |
On minikube,
Can you try the same and check. I think we do need more info because normally multiple reports will come in for such a problem but we don't have multiple reports on this. |
/remove-kind bug |
/kind bug I did not realize earlier that it was about the default-backend so this is a bug and someone has thankfully submitted PR to fix it #9731 |
/remove-kind support |
@plynch-magnolia please confirm that the fix works for you now #9731 |
/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. |
The issue was not fixed for me. Perhaps if a new release version is tagged it will work for me as we need to specify versions. I tried it with no version but got the same issue, |
Try pointing to project helm directory and test, instead of released chart.
…On Tue, 14 Mar, 2023, 6:13 pm plynch-magnolia, ***@***.***> wrote:
The issue was not fixed for me. Perhaps if a new release version is tagged
it will work for me as we need to specify versions. I tried it with no
version but got the same issue,
—
Reply to this email directly, view it on GitHub
<#9728 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGZVWWZZPRFP2OOR63AYFDW4BRXJANCNFSM6AAAAAAVZIPKZE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This is the code I have, which is the minimum I can provide.
|
For testing, you can point that to the charts folder of the project on
github. Or wait a few days and we will release new chart
…On Tue, 14 Mar, 2023, 6:30 pm plynch-magnolia, ***@***.***> wrote:
This is the code I have, which is the minimum I can provide.
resource "helm_release" "ingress" { name =
local.ingress_nginx_release_name repository = "
https://kubernetes.github.io/ingress-nginx" chart = "ingress-nginx" ...
—
Reply to this email directly, view it on GitHub
<#9728 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGZVWV2ZCOX564O2ZLUNPLW4BTXZANCNFSM6AAAAAAVZIPKZE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I was unable to point directly due to a "not a helm chart directory" error because there is no index.yaml. |
tf helm provider has to be told that its not a package but the exploded chart. in any case, plz wait for a few days as we are trying to release the next iteration of the controller, which will ship the next version of the chart as well |
still failing ComparisonError: unsupported HPA GVK: autoscaling/v2, Kind=HorizontalPodAutoscaler version: 4.5.2 |
@hpAB Try to install from the directory "chart" on the project's github repo, until the next release is out |
i dont think i can do that from helm. Helm does not currently support git repositories in its dependency resolver
|
Can you at least clone the github repo or download the zip of the repo from github and try to install from a local path. At least we can know the result of that merged PR which hardcoded the api version to v2. |
When using the newest version of the chart via Terraform, I am now getting the following error: |
I opened this PR to address: #9803 |
Any chance you can install without terraform to report what happens ? Like a install using helm cli or whatever the docs suggest for your provider. |
And reminding you that your original post describing the problem has skipped all the questions asked in a new issue template. That does not help any reader coming here and does not help the people who would want to work on this. Please answer the questions asked in the new issue template. |
Also try the latest release of the controller because this PR #9731 change the HPA API Version to v2 |
I am using the latest release and this is the error I got from my Terraform environment, which is the one it was working in until v1.25 was released. |
Incorrect. The description of this issue says this ;
But there is one more release after 4.5.2 |
It's not a terraform problem, the problem is coming from my EKS environment rejecting the chart because of the errors I have provided here. I don't know how much else I can provide without someone testing adding this to their EKS cluster via Terraform helm. The PR #9731 overcame the first error, but a new error came up to which the PR I submitted, #9803 should overcome. |
I am now using version 4.6.0 and the error I just provided is what I now get. |
Basically there is lack of resources and the information provided as per new issue template and as per testing manually installaing on ELS as per documented procedure helps people who want to work on issue. Without that info, others have to guess and do a lot of blind work to even understand the problem, solution and impact of solution on project |
apiVersion: v2
still gives error unsupported HPA GVK: autoscaling/v2, Kind=HorizontalPodAutoscaler when deploying with argocd |
Closing this issue which is no longer applicable as error has shifted to something new. |
What happened:
Error: unable to build kubernetes objects from release manifest: resource mapping not found for name: "mgnl-ingress-nginx-defaultbackend" namespace: "ingress-nginx" from "": no matches for kind "HorizontalPodAutoscaler" in version "autoscaling/v2beta1"
What you expected to happen:
Expected chart to be able to be created using K8s version 1.25+
NGINX Ingress controller version : Chart version 4.5.2
Kubernetes version (use
kubectl version
): 1.25How to reproduce this issue:
Try to install the helm chart in a k8s v1.2.5+ environment
Anything else we need to know:
Updating the API version to "autoscaling/v2" should resolve the issue.
https://kubernetes.io/docs/reference/using-api/deprecation-guide/#horizontalpodautoscaler-v125
The text was updated successfully, but these errors were encountered: