Skip to content
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

Helm chart HPA condition #4069

Closed
glieske opened this issue Jun 30, 2023 · 4 comments · Fixed by #4070
Closed

Helm chart HPA condition #4069

glieske opened this issue Jun 30, 2023 · 4 comments · Fixed by #4070
Assignees
Labels
backlog Pull requests/issues that are backlog items bug An issue reporting a potential bug
Milestone

Comments

@glieske
Copy link

glieske commented Jun 30, 2023

Describe the bug

https://github.com/nginxinc/kubernetes-ingress/blob/v3.2.0/deployments/helm-chart/templates/controller-hpa.yaml#L1

I'm having issues with the last condition, (semverCompare ">=1.23.0" .Capabilities.KubeVersion.Version) while working with an AWS EKS 1.25 cluster. The value stored under ".Capabilities.KubeVersion.Version" is v1.25.10-eks-c12679a, which is a newer version than 1.23 but not a valid semver version. As a result, the HPA is not being deployed by the helm chart.

To Reproduce
Steps to reproduce the behavior:

  1. `Deploy the helm chart with autoscaling enabled on AWS EKS with the 1.25 cluster.

Expected behavior
An HPA resource should be created.

Your environment

  • Version of the Ingress Controller - 3.2.0
  • Version of Kubernetes - 1.25
  • Kubernetes platform (e.g. Mini-kube or GCP) AWS EKS
  • Using NGINX or NGINX Plus - NGINX

Additional context
Add any other context about the problem here. Any log files you want to share.

@github-actions
Copy link

Hi @glieske thanks for reporting!

Be sure to check out the docs and the Contributing Guidelines while you wait for a human to take a look at this 🙂

Cheers!

@vepatel
Copy link
Contributor

vepatel commented Jun 30, 2023

Thanks @glieske for opening this issue, looks like EKS specific and they've no plans to address this either helm/helm#10375 (comment) and aws/containers-roadmap#1404, I'll have a discussion on this with the wider team.
cc @coolbry95

@vepatel vepatel added the backlog Pull requests/issues that are backlog items label Jun 30, 2023
@vepatel vepatel self-assigned this Jun 30, 2023
@lucacome
Copy link
Member

I think we can check if HPA is available rather than checking the version of k8s

@vepatel vepatel added this to the v3.3.0 milestone Jul 6, 2023
@shaun-nx shaun-nx added bug An issue reporting a potential bug backlog Pull requests/issues that are backlog items and removed backlog Pull requests/issues that are backlog items labels Jul 12, 2023
@vepatel
Copy link
Contributor

vepatel commented Jul 17, 2023

EKS version: Server Version: version.Info{Major:"1", Minor:"27+", GitVersion:"v1.27.3-eks-a5565ad"}

~/nginx/kubernetes-ingress/deployments/helm-chart on main ● λ k get hpa                                                                                                                             
No resources found in default namespace.

with changes in #4070

~/nginx/kubernetes-ingress/deployments/helm-chart on main ● λ k get hpa
NAME                                    REFERENCE                                          TARGETS           MINPODS   MAXPODS   REPLICAS   AGE
test-release-nginx-ingress-controller   Deployment/test-release-nginx-ingress-controller   12%/50%, 2%/50%   3         4         3          32s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Pull requests/issues that are backlog items bug An issue reporting a potential bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants