-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
PodDisruptionBudgets API version policy/v1beta1 removed in Kubernetes 1.25 #1104
Comments
In the main branch, the version of |
I'm showing:
|
Right. That's the cause of the error in the example. |
This has been part of the Helm chart since it was first released from this repo as we have the ability to support both. You will need to swap the manifests over to |
Is there a way I can help get a version with the right policy tagged and made available via helm? |
@jcpunk support for the correct
|
Interesting, mine doesn't seem to be running. Thought I'd tracked it down to this issue... guess I'll need to do more research.... |
After receiving Steve's response, I took another look at this. I read about how to use kustomize. I applied release-ha and metrics-server appears to be working as expected now. Thanks so much. |
@jcpunk the following steps should help you figure out what's wrong, I'm working on the assumption that you're running a recent version of Helm v3. Run
Run
Run
Run
|
I ended up using Kustomize to install.
kubectl apply -k ./metrics-server/0.6.1/manifests/overlays/release-ha
…________________________________
From: Steve Hipwell ***@***.***>
Sent: Monday, October 24, 2022 10:36 PM
To: kubernetes-sigs/metrics-server ***@***.***>
Cc: James Ringer ***@***.***>; State change ***@***.***>
Subject: Re: [kubernetes-sigs/metrics-server] PodDisruptionBudgets API version policy/v1beta1 removed in Kubernetes 1.25 (Issue #1104)
@jcpunk<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjcpunk&data=05%7C01%7Cjames%40ihearttech.net%7C2d3b44969ac94759ddbd08dab66401f1%7C4c45c96b49844aa6a74acd2ff83d5cd0%7C0%7C0%7C638022837911246565%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7iwmqTSF9bWR3ashS7BH6noh28ecfZQKXWtkSadaTW8%3D&reserved=0> the following steps should help you figure out what's wrong, I'm working on the assumption that you're running a recent version of Helm v3.
Run helm repo list and you should see the following entry.
metrics-server https://kubernetes-sigs.github.io/metrics-server/<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fkubernetes-sigs.github.io%2Fmetrics-server%2F&data=05%7C01%7Cjames%40ihearttech.net%7C2d3b44969ac94759ddbd08dab66401f1%7C4c45c96b49844aa6a74acd2ff83d5cd0%7C0%7C0%7C638022837911246565%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=cY7uDdZsWu33DQ5M%2FZrmoxbdYp5LsFjTNqXaBfgUtSo%3D&reserved=0>
Run helm repo update && helm search repo metrics-server and you should see the following entry.
metrics-server/metrics-server 3.8.2 0.6.1 Metrics Server is a scalable, efficient source ...
Run helm --namespace kube-system template --kube-version 1.20.0 metrics-server metrics-server/metrics-server --version 3.8.2 --set podDisruptionBudget.enabled=true --set podDisruptionBudget.minAvailable=1 and you should see the following.
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: metrics-server
labels:
helm.sh/chart: metrics-server-3.8.2
app.kubernetes.io/name: metrics-server
app.kubernetes.io/instance: metrics-server
app.kubernetes.io/version: "0.6.1"
app.kubernetes.io/managed-by: Helm
spec:
minAvailable: 1
selector:
matchLabels:
app.kubernetes.io/name: metrics-server
app.kubernetes.io/instance: metrics-server
Run helm --namespace kube-system template --kube-version 1.21.0 metrics-server metrics-server/metrics-server --version 3.8.2 --set podDisruptionBudget.enabled=true --set podDisruptionBudget.minAvailable=1 and you should see the following.
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: metrics-server
labels:
helm.sh/chart: metrics-server-3.8.2
app.kubernetes.io/name: metrics-server
app.kubernetes.io/instance: metrics-server
app.kubernetes.io/version: "0.6.1"
app.kubernetes.io/managed-by: Helm
spec:
minAvailable: 1
selector:
matchLabels:
app.kubernetes.io/name: metrics-server
app.kubernetes.io/instance: metrics-server
—
Reply to this email directly, view it on GitHub<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkubernetes-sigs%2Fmetrics-server%2Fissues%2F1104%23issuecomment-1290191843&data=05%7C01%7Cjames%40ihearttech.net%7C2d3b44969ac94759ddbd08dab66401f1%7C4c45c96b49844aa6a74acd2ff83d5cd0%7C0%7C0%7C638022837911246565%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jFB723%2FvfvUaIGZLKapa%2BPmM%2BbxgWZc8OldgWt8AD5k%3D&reserved=0>, or unsubscribe<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQBDAN3KQLSZXKSHOXSAV2DWE6LYVANCNFSM6AAAAAARGW4MTM&data=05%7C01%7Cjames%40ihearttech.net%7C2d3b44969ac94759ddbd08dab66401f1%7C4c45c96b49844aa6a74acd2ff83d5cd0%7C0%7C0%7C638022837911246565%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=xTqeBjNdMl9wXOC2nrF2K%2F52XT%2BPLgtXcpIDU4Hgpuw%3D&reserved=0>.
You are receiving this because you modified the open/close state.Message ID: ***@***.***>
|
What would you like to be added:
PodDisruptionBudgets policy/v1
Why is this needed:
PodDisruptionBudgets API version policy/v1beta1 removed in Kubernetes 1.25
https://kubernetes.io/docs/reference/using-api/deprecation-guide/#poddisruptionbudget-v125
Example:
/kind feature
The text was updated successfully, but these errors were encountered: