File tree 5 files changed +10
-8
lines changed
5 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## master / unreleased
4
+
5
+ * [ CHANGE] Use policy/v1 PodDisruptionBudget to support k8s 1.25+
6
+
3
7
## 1.11.1 / 2023-01-13
4
8
5
9
* [ CHANGE] Updated readme to use this repo with tanka
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ test-readme: test-readme/azure test-readme/gcs test-readme/s3
49
49
test-readme/% :
50
50
rm -rf $@ && \
51
51
mkdir -p $@ && cd $@ && \
52
- tk init --k8s=1.21 && \
52
+ tk init --k8s=1.23 && \
53
53
jb install github.com/cortexproject/cortex-jsonnet/cortex@main && \
54
54
rm -fr ./vendor/cortex && \
55
55
cp -r ../../cortex ./vendor/ && \
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ To generate the YAMLs for deploying Cortex:
25
25
26
26
```console
27
27
$ mkdir <name> && cd <name>
28
- $ tk init --k8s=1.21 # this includes github.com/jsonnet-libs/k8s-libsonnet/1.21 @main
28
+ $ tk init --k8s=1.23 # this includes github.com/jsonnet-libs/k8s-libsonnet/1.23 @main
29
29
$ jb install github.com/cortexproject/cortex-jsonnet/cortex@main
30
30
```
31
31
Original file line number Diff line number Diff line change 1
1
{
2
- local podDisruptionBudget = $.policy.v1beta1 .podDisruptionBudget,
2
+ local podDisruptionBudget = $.policy.v1 .podDisruptionBudget,
3
3
local pvc = $.core.v1.persistentVolumeClaim,
4
4
local statefulSet = $.apps.v1.statefulSet,
5
5
local volume = $.core.v1.volume,
90
90
ingester_service_ignored_labels:: [],
91
91
92
92
newIngesterPdb(pdbName, ingesterName)::
93
- podDisruptionBudget.new() +
94
- podDisruptionBudget.mixin.metadata.withName(pdbName) +
93
+ podDisruptionBudget.new(pdbName) +
95
94
podDisruptionBudget.mixin.metadata.withLabels({ name: pdbName }) +
96
95
podDisruptionBudget.mixin.spec.selector.withMatchLabels({ name: ingesterName }) +
97
96
podDisruptionBudget.mixin.spec.withMaxUnavailable(1 ),
Original file line number Diff line number Diff line change 1
1
{
2
2
local container = $.core.v1.container,
3
- local podDisruptionBudget = $.policy.v1beta1 .podDisruptionBudget,
3
+ local podDisruptionBudget = $.policy.v1 .podDisruptionBudget,
4
4
local pvc = $.core.v1.persistentVolumeClaim,
5
5
local statefulSet = $.apps.v1.statefulSet,
6
6
local volumeMount = $.core.v1.volumeMount,
69
69
$.util.serviceFor($.store_gateway_statefulset),
70
70
71
71
store_gateway_pdb:
72
- podDisruptionBudget.new() +
73
- podDisruptionBudget.mixin.metadata.withName('store-gateway-pdb' ) +
72
+ podDisruptionBudget.new('store-gateway-pdb' ) +
74
73
podDisruptionBudget.mixin.metadata.withLabels({ name: 'store-gateway-pdb' }) +
75
74
podDisruptionBudget.mixin.spec.selector.withMatchLabels({ name: 'store-gateway' }) +
76
75
// To avoid any disruption in the read path we need at least 1 replica of each
You can’t perform that action at this time.
0 commit comments