diff --git a/jsonnet/kube-prometheus/components/alertmanager.libsonnet b/jsonnet/kube-prometheus/components/alertmanager.libsonnet index fa6368ca..5cfe57b2 100644 --- a/jsonnet/kube-prometheus/components/alertmanager.libsonnet +++ b/jsonnet/kube-prometheus/components/alertmanager.libsonnet @@ -168,7 +168,7 @@ function(params) { }, [if (defaults + params).replicas > 1 then 'podDisruptionBudget']: { - apiVersion: 'policy/v1beta1', + apiVersion: 'policy/v1', kind: 'PodDisruptionBudget', metadata: { name: 'alertmanager-' + am._config.name, diff --git a/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet b/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet index f5f26d3e..c81bb4de 100644 --- a/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet +++ b/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet @@ -378,7 +378,7 @@ function(params) { }, [if (defaults + params).replicas > 1 then 'podDisruptionBudget']: { - apiVersion: 'policy/v1beta1', + apiVersion: 'policy/v1', kind: 'PodDisruptionBudget', metadata: { name: pa._config.name, diff --git a/jsonnet/kube-prometheus/components/prometheus.libsonnet b/jsonnet/kube-prometheus/components/prometheus.libsonnet index 5c6e04ce..0c447c7e 100644 --- a/jsonnet/kube-prometheus/components/prometheus.libsonnet +++ b/jsonnet/kube-prometheus/components/prometheus.libsonnet @@ -246,7 +246,7 @@ function(params) { }, [if (defaults + params).replicas > 1 then 'podDisruptionBudget']: { - apiVersion: 'policy/v1beta1', + apiVersion: 'policy/v1', kind: 'PodDisruptionBudget', metadata: { name: 'prometheus-' + p._config.name, diff --git a/manifests/alertmanager-podDisruptionBudget.yaml b/manifests/alertmanager-podDisruptionBudget.yaml index b55b7cdb..71ab4272 100644 --- a/manifests/alertmanager-podDisruptionBudget.yaml +++ b/manifests/alertmanager-podDisruptionBudget.yaml @@ -1,4 +1,4 @@ -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: labels: diff --git a/manifests/prometheus-adapter-podDisruptionBudget.yaml b/manifests/prometheus-adapter-podDisruptionBudget.yaml index 639eefd4..d22c9e4f 100644 --- a/manifests/prometheus-adapter-podDisruptionBudget.yaml +++ b/manifests/prometheus-adapter-podDisruptionBudget.yaml @@ -1,4 +1,4 @@ -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: labels: diff --git a/manifests/prometheus-podDisruptionBudget.yaml b/manifests/prometheus-podDisruptionBudget.yaml index 8b35948e..a959030b 100644 --- a/manifests/prometheus-podDisruptionBudget.yaml +++ b/manifests/prometheus-podDisruptionBudget.yaml @@ -1,4 +1,4 @@ -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: labels: