diff --git a/jsonnet/kube-prometheus/components/alertmanager.libsonnet b/jsonnet/kube-prometheus/components/alertmanager.libsonnet index fa6368ca6b56433eb57f0323b9f2ed145eb0d4d9..5cfe57b231c602218fdc5a77049be669c143c36c 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 f5f26d3e21627f14bcb82b6528f9664d5e04bfec..c81bb4de34e1152424b711a487000237507655fb 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 5c6e04ce574d988a79f1b3eb7f480912200b3283..0c447c7e739d5ea7ba99495da2695dafd816b8fc 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 b55b7cdb9c097c93bea53e4bfc27117d6c4c9aaa..71ab427296326c063951ae83c818e7807181bfae 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 639eefd4deaba300e91a78d49f991bd2eaf1e628..d22c9e4f60b1868c0a944544d88e745a8d2d6997 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 8b35948e943ba8afcf98b057adcd5dad8d30dbf7..a959030b4525361d1a2284ddd56eebc0797a08e8 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: