-
Notifications
You must be signed in to change notification settings - Fork 4k
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
PSP Rollout is broken #5505
Comments
#5480 should resolve this once merged. |
#5480 has now been merged, if you can confirm that's fixed this, we can close this off. Thanks for raising it. |
tried to update to 1.25 today, and got this:
Using helm chart 9.28.0 and image tag v1.25.1 |
Upgraded to k8s 1.25 ... getting this issue with helm chart 9.28.0 as well |
This is the error I'm getting on my side: |
From my research it's a Helm issue actually, tested |
Upgraded to aws k8s 1.27 and getting this issue with helm chart 9.28.0, unable to build kubernetes objects from current release manifest: resource mapping not found for name: "aws-cluster-autoscaler" namespace: "" from "": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1" ensure CRDs are installed first |
i'm having the same issue as @4sudiptodas |
Got inspirations from this comment: helm/helm#7219 (comment) This works for me:
Then upgrading |
Same issue with Helm Chart:
We've even tried to explicitly set the following in the Helm Chart:
As we are on v1.27 and due to seeing:
Also later based upon our looking of the Template code (https://github.com/kubernetes/autoscaler/blob/master/charts/cluster-autoscaler/templates/podsecuritypolicy.yaml#L1C3-L1C3) a member of our team thought the following might help trying to set the following on the Helm Chart:
but then that also only leads to another similiar issue:
Why is the Helm chart trying to force us to use We have those Kinds available in our Cluster:
😞 |
@jd-sandk Do you find any solutions? |
@Idan-Lazar We don't remember fully, since it was awhile ago, but we tried to recall this morning, and we want to say: that once we upgraded the Kubernetes version, then |
@jd-sandk |
Considering <1.21 has been out of support for years now. I dont really understand the reasoning of tempting the api-version for the pdb. How likely is it that it will change soon/ever from
yet the values.yaml doesn't specify the version: https://github.com/kubernetes/autoscaler/blob/master/charts/cluster-autoscaler/values.yaml#L258-L262 I'm of the opinion we just hardcode |
Hi, |
FWIW, here is what i had to override as a parameter (using the Chart) to get autoscaler deployed on 1.25.
The first one required because
The second one is required because
cc @marinator86 |
is this function even working I m on 9.34.1 and even after setting I m using TF, deleting chart and recreating helped in my case |
Any udpate on this issue ?? |
Hi,
the last Chart update breaks the rollout of the PSP. API Version v1 is not available on AWS EKS 1.22, 1.23 and 1.24.
autoscaler/charts/cluster-autoscaler/templates/_helpers.tpl
Lines 73 to 74 in a484713
EKS 1.22
EKS 1.24
v1 doesn't exist in the API Documentation for PSP [API ref 1.24] (https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#podsecuritypolicy-v1beta1-policy) and PSP are removed in 1.25. It make sense to revert #5357 and #5500 .
autoscaler/charts/cluster-autoscaler/templates/_helpers.tpl
Lines 66 to 76 in b57d917
I will create a PR to fix this in the next minutes.
The text was updated successfully, but these errors were encountered: