-
Notifications
You must be signed in to change notification settings - Fork 327
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
policy/v1beta1 deprecated on k8s v1.25+ #2602
Comments
Hi @cliddlebd We tried to replicate this issue but was not able to. Could you tell us if this still exists on consul-k8s 1.2.1? |
Will close as it is not reproducible. |
Hi @david-yu , This issus still persists when using helm from here Chart Version:
My environment:
Error:
|
We may need more info on your values.yaml file as I'm not seeing this on k8s 1.27.3
values.yaml
|
I have the same issue with 1.3.3 Helm chart using ArgoCD. As a workaround, I've disabled PDBs in values.yaml:
|
Community Note
Overview of the Issue
In the latest version of this helm chart,
disruptionBudget
is enabled by default and the templates all usepolicy/v1beta1
api which is deprecated as of k8s v1.25+.https://kubernetes.io/docs/reference/using-api/deprecation-guide/#poddisruptionbudget-v125
Reproduction Steps
When running helm install with the default values on kubernetes version 1.25+ i get
the server could not find the requested resource
onpolicy/v1beta1/PodDisruptionBudget
.The chart also checks for
{{- if .Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" }}
however the api version is actuallypolicy/v1
when printing{{ .Capabilities.APIVersions }}
Expected behavior
Helm chart installs successfully.
Environment details
If not already included, please provide the following:
consul-k8s
version: 1.2.0values.yaml
used to deploy the helm chart: defaultAdditionally, please provide details regarding the Kubernetes Infrastructure, as shown below:
The text was updated successfully, but these errors were encountered: