Skip to content

Commit

Permalink
Merge pull request #3 from seanankenbruck/rollout-operator-config
Browse files Browse the repository at this point in the history
Additional changes to resolve outstanding comments
  • Loading branch information
m1rp authored Mar 4, 2025
2 parents 096dc67 + 1ac7705 commit d415a93
Show file tree
Hide file tree
Showing 26 changed files with 334 additions and 6 deletions.
2 changes: 1 addition & 1 deletion operations/helm/charts/mimir-distributed/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Entries should include a reference to the Pull Request that introduced the chang
* [BUGFIX] Let the unified gateway/nginx config listen on IPv6 as well. Followup to #5948. #6204
* [BUGFIX] Quote `checksum/config` when using external config. This allows setting `externalConfigVersion` to numeric values. #6407
* [BUGFIX] Update memcached-exporter to 0.14.1 due to CVE-2023-39325. #6861

## 5.1.4

* [BUGFIX] Update memcached-exporter to 0.14.1 due to CVE-2023-39325.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,9 @@
{{- if and (not .Values.enterprise.enabled) .Values.federation_frontend.enabled -}}
{{- fail "You have federation_frontend.enabled=true, but enterprise.enabled=false. Federation Frontend is an enterprise-only feature and requires enterprise mode to be enabled." }}
{{- end -}}

{{- range .Values.ingester.zoneAwareReplication.zones }}
{{- if and (eq .noDownscale true) (eq .prepareDownscale true) }}
{{- fail (printf "For ingester zone '%s': noDownscale and prepareDownscale cannot be used simultaneously." .name) -}}
{{- end }}
{{- end }}
10 changes: 5 additions & 5 deletions operations/helm/charts/mimir-distributed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ ingester:
# If undefined or set to null (the default), no Annotation is set
downscaleLeader: null
# -- prepareDownscale adds labels and annotations for the rollout-operator to prepare downscaling: https://github.com/grafana/rollout-operator#how-scaling-up-and-down-works
prepareDownscale: false
prepareDownscale: true
# -- Name of the zone, used in labels and selectors. Must follow Kubernetes naming restrictions: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
- name: zone-b
# -- nodeselector to restrict where pods of this zone can be placed. E.g.:
Expand All @@ -1199,9 +1199,9 @@ ingester:
# -- downscaleLeader is an Annotation used by the rollout-operator
# If defined, downscaleLeader: <downscaleLeader>
# If undefined or set to null (the default), no Annotation is set
downscaleLeader: null
downscaleLeader: mimir-ingester-zone-a
# -- prepareDownscale adds labels and annotations for the rollout-operator to prepare downscaling: https://github.com/grafana/rollout-operator#how-scaling-up-and-down-works
prepareDownscale: false
prepareDownscale: true
# -- Name of the zone, used in labels and selectors. Must follow Kubernetes naming restrictions: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
- name: zone-c
# -- nodeselector to restrict where pods of this zone can be placed. E.g.:
Expand All @@ -1220,9 +1220,9 @@ ingester:
# -- downscaleLeader is an Annotation used by the rollout-operator
# If defined, downscaleLeader: <downscaleLeader>
# If undefined or set to null (the default), no Annotation is set
downscaleLeader: null
downscaleLeader: mimir-ingester-zone-b
# -- prepareDownscale adds labels and annotations for the rollout-operator to prepare downscaling: https://github.com/grafana/rollout-operator#how-scaling-up-and-down-works
prepareDownscale: false
prepareDownscale: true

overrides_exporter:
enabled: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ metadata:
name: "ingester-zone-a"
rollout-group: ingester
zone: zone-a
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down Expand Up @@ -163,8 +167,13 @@ metadata:
name: "ingester-zone-b"
rollout-group: ingester
zone: zone-b
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
grafana.com/rollout-downscale-leader: $rolloutZone.downscaleLeader
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down Expand Up @@ -313,8 +322,13 @@ metadata:
name: "ingester-zone-c"
rollout-group: ingester
zone: zone-c
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
grafana.com/rollout-downscale-leader: $rolloutZone.downscaleLeader
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ metadata:
name: "ingester-zone-a"
rollout-group: ingester
zone: zone-a
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down Expand Up @@ -154,8 +158,13 @@ metadata:
name: "ingester-zone-b"
rollout-group: ingester
zone: zone-b
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
grafana.com/rollout-downscale-leader: $rolloutZone.downscaleLeader
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down Expand Up @@ -295,8 +304,13 @@ metadata:
name: "ingester-zone-c"
rollout-group: ingester
zone: zone-c
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
grafana.com/rollout-downscale-leader: $rolloutZone.downscaleLeader
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ metadata:
name: "ingester-zone-a"
rollout-group: ingester
zone: zone-a
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down Expand Up @@ -149,8 +153,13 @@ metadata:
name: "ingester-zone-b"
rollout-group: ingester
zone: zone-b
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
grafana.com/rollout-downscale-leader: $rolloutZone.downscaleLeader
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down Expand Up @@ -285,8 +294,13 @@ metadata:
name: "ingester-zone-c"
rollout-group: ingester
zone: zone-c
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
grafana.com/rollout-downscale-leader: $rolloutZone.downscaleLeader
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ metadata:
name: "ingester-zone-a"
rollout-group: ingester
zone: zone-a
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down Expand Up @@ -149,8 +153,13 @@ metadata:
name: "ingester-zone-b"
rollout-group: ingester
zone: zone-b
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
grafana.com/rollout-downscale-leader: $rolloutZone.downscaleLeader
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down Expand Up @@ -285,8 +294,13 @@ metadata:
name: "ingester-zone-c"
rollout-group: ingester
zone: zone-c
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
grafana.com/rollout-downscale-leader: $rolloutZone.downscaleLeader
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ metadata:
name: "ingester-zone-a"
rollout-group: ingester
zone: zone-a
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down Expand Up @@ -149,8 +153,13 @@ metadata:
name: "ingester-zone-b"
rollout-group: ingester
zone: zone-b
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
grafana.com/rollout-downscale-leader: $rolloutZone.downscaleLeader
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down Expand Up @@ -285,8 +294,13 @@ metadata:
name: "ingester-zone-c"
rollout-group: ingester
zone: zone-c
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
grafana.com/rollout-downscale-leader: $rolloutZone.downscaleLeader
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ metadata:
name: "ingester-zone-a"
rollout-group: ingester
zone: zone-a
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down Expand Up @@ -149,8 +153,13 @@ metadata:
name: "ingester-zone-b"
rollout-group: ingester
zone: zone-b
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
grafana.com/rollout-downscale-leader: $rolloutZone.downscaleLeader
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down Expand Up @@ -285,8 +294,13 @@ metadata:
name: "ingester-zone-c"
rollout-group: ingester
zone: zone-c
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
grafana.com/rollout-downscale-leader: $rolloutZone.downscaleLeader
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ metadata:
name: "ingester-zone-a"
rollout-group: ingester
zone: zone-a
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down Expand Up @@ -165,8 +169,13 @@ metadata:
name: "ingester-zone-b"
rollout-group: ingester
zone: zone-b
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
grafana.com/rollout-downscale-leader: $rolloutZone.downscaleLeader
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down Expand Up @@ -317,8 +326,13 @@ metadata:
name: "ingester-zone-c"
rollout-group: ingester
zone: zone-c
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
grafana.com/rollout-downscale-leader: $rolloutZone.downscaleLeader
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ metadata:
name: "ingester-zone-a"
rollout-group: ingester
zone: zone-a
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down Expand Up @@ -151,8 +155,13 @@ metadata:
name: "ingester-zone-b"
rollout-group: ingester
zone: zone-b
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
grafana.com/rollout-downscale-leader: $rolloutZone.downscaleLeader
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down Expand Up @@ -289,8 +298,13 @@ metadata:
name: "ingester-zone-c"
rollout-group: ingester
zone: zone-c
grafana.com/prepare-downscale: true
grafana.com/min-time-between-zones-downscale: 12h
annotations:
rollout-max-unavailable: "50"
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: 8080
grafana.com/rollout-downscale-leader: $rolloutZone.downscaleLeader
namespace: "citestns"
spec:
podManagementPolicy: Parallel
Expand Down
Loading

0 comments on commit d415a93

Please sign in to comment.