Skip to content

Commit

Permalink
jsonnet: pass downscale-http-port from config (#10367)
Browse files Browse the repository at this point in the history
* mimir: pass downscale endpoint port from config

Signed-off-by: Vladimir Varankin <[email protected]>

* update changelog

Signed-off-by: Vladimir Varankin <[email protected]>

* rebuild assets

Signed-off-by: Vladimir Varankin <[email protected]>

---------

Signed-off-by: Vladimir Varankin <[email protected]>
  • Loading branch information
narqo authored Jan 30, 2025
1 parent 656dfb1 commit b26705d
Show file tree
Hide file tree
Showing 24 changed files with 77 additions and 76 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
* [CHANGE] Memcached: Update to Memcached 1.6.34. #10318
* [ENHANCEMENT] Enforce `persistentVolumeClaimRetentionPolicy` `Retain` policy on partition ingesters during migration to experimental ingest storage. #10395
* [BUGFIX] Ports in container rollout-operator. #10273
* [BUGFIX] When downscaling is enabled, the components must annotate `prepare-downscale-http-port` with the value set in `$._config.server_http_port`. #10367

### Mimirtool

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
rollout-max-unavailable: "50"
labels:
grafana.com/min-time-between-zones-downscale: 12h
Expand Down Expand Up @@ -1471,7 +1471,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-downscale-leader: ingester-zone-a
rollout-max-unavailable: "50"
labels:
Expand Down Expand Up @@ -1599,7 +1599,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-downscale-leader: ingester-zone-b
rollout-max-unavailable: "50"
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-delayed-downscale: 13h
grafana.com/rollout-mirror-replicas-from-resource-api-version: rollout-operator.grafana.com/v1
grafana.com/rollout-mirror-replicas-from-resource-kind: ReplicaTemplate
Expand Down Expand Up @@ -1534,7 +1534,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-delayed-downscale: 13h
grafana.com/rollout-mirror-replicas-from-resource-api-version: rollout-operator.grafana.com/v1
grafana.com/rollout-mirror-replicas-from-resource-kind: ReplicaTemplate
Expand Down Expand Up @@ -1667,7 +1667,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-delayed-downscale: 13h
grafana.com/rollout-mirror-replicas-from-resource-api-version: rollout-operator.grafana.com/v1
grafana.com/rollout-mirror-replicas-from-resource-kind: ReplicaTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1830,7 +1830,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-delayed-downscale: 13h
grafana.com/rollout-mirror-replicas-from-resource-api-version: rollout-operator.grafana.com/v1
grafana.com/rollout-mirror-replicas-from-resource-kind: ReplicaTemplate
Expand Down Expand Up @@ -1980,7 +1980,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-downscale-leader: ingester-zone-a
rollout-max-unavailable: "50"
labels:
Expand Down Expand Up @@ -2120,7 +2120,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-downscale-leader: ingester-zone-a
rollout-max-unavailable: "50"
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1830,7 +1830,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-delayed-downscale: 13h
grafana.com/rollout-mirror-replicas-from-resource-api-version: rollout-operator.grafana.com/v1
grafana.com/rollout-mirror-replicas-from-resource-kind: ReplicaTemplate
Expand Down Expand Up @@ -1980,7 +1980,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-downscale-leader: ingester-zone-a
rollout-max-unavailable: "50"
labels:
Expand Down Expand Up @@ -2120,7 +2120,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-downscale-leader: ingester-zone-a
rollout-max-unavailable: "50"
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1830,7 +1830,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-delayed-downscale: 13h
grafana.com/rollout-mirror-replicas-from-resource-api-version: rollout-operator.grafana.com/v1
grafana.com/rollout-mirror-replicas-from-resource-kind: ReplicaTemplate
Expand Down Expand Up @@ -1980,7 +1980,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-downscale-leader: ingester-zone-a
rollout-max-unavailable: "50"
labels:
Expand Down Expand Up @@ -2120,7 +2120,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-downscale-leader: ingester-zone-a
rollout-max-unavailable: "50"
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1718,7 +1718,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
rollout-max-unavailable: "50"
labels:
grafana.com/min-time-between-zones-downscale: 12h
Expand Down Expand Up @@ -1855,7 +1855,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-downscale-leader: ingester-zone-a
rollout-max-unavailable: "50"
labels:
Expand Down Expand Up @@ -1986,7 +1986,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-downscale-leader: ingester-zone-b
rollout-max-unavailable: "50"
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1791,7 +1791,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
rollout-max-unavailable: "50"
labels:
grafana.com/min-time-between-zones-downscale: 12h
Expand Down Expand Up @@ -1929,7 +1929,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
rollout-max-unavailable: "50"
labels:
grafana.com/prepare-downscale: "true"
Expand Down Expand Up @@ -2078,7 +2078,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-downscale-leader: ingester-zone-a
rollout-max-unavailable: "50"
labels:
Expand Down Expand Up @@ -2210,7 +2210,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
rollout-max-unavailable: "50"
labels:
grafana.com/prepare-downscale: "true"
Expand Down Expand Up @@ -2353,7 +2353,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-downscale-leader: ingester-zone-b
rollout-max-unavailable: "50"
labels:
Expand Down Expand Up @@ -2485,7 +2485,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
rollout-max-unavailable: "50"
labels:
grafana.com/prepare-downscale: "true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1807,7 +1807,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
rollout-max-unavailable: "50"
labels:
grafana.com/min-time-between-zones-downscale: "0"
Expand Down Expand Up @@ -1953,7 +1953,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-downscale-leader: ingester-zone-a
rollout-max-unavailable: "50"
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1807,7 +1807,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-delayed-downscale: 13h
grafana.com/rollout-mirror-replicas-from-resource-api-version: rollout-operator.grafana.com/v1
grafana.com/rollout-mirror-replicas-from-resource-kind: ReplicaTemplate
Expand Down Expand Up @@ -1957,7 +1957,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-downscale-leader: ingester-zone-a
rollout-max-unavailable: "50"
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
rollout-max-unavailable: "50"
labels:
grafana.com/min-time-between-zones-downscale: 12h
Expand Down Expand Up @@ -1942,7 +1942,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
rollout-max-unavailable: "50"
labels:
grafana.com/prepare-downscale: "true"
Expand Down Expand Up @@ -2091,7 +2091,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-downscale-leader: ingester-zone-a
rollout-max-unavailable: "50"
labels:
Expand Down Expand Up @@ -2223,7 +2223,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
rollout-max-unavailable: "50"
labels:
grafana.com/prepare-downscale: "true"
Expand Down Expand Up @@ -2366,7 +2366,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-downscale-leader: ingester-zone-b
rollout-max-unavailable: "50"
labels:
Expand Down Expand Up @@ -2498,7 +2498,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
rollout-max-unavailable: "50"
labels:
grafana.com/prepare-downscale: "true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1826,7 +1826,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
rollout-max-unavailable: "50"
labels:
grafana.com/min-time-between-zones-downscale: 12h
Expand Down Expand Up @@ -1964,7 +1964,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
rollout-max-unavailable: "50"
labels:
grafana.com/prepare-downscale: "true"
Expand Down Expand Up @@ -2113,7 +2113,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-downscale-leader: ingester-zone-a
rollout-max-unavailable: "50"
labels:
Expand Down Expand Up @@ -2245,7 +2245,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
rollout-max-unavailable: "50"
labels:
grafana.com/prepare-downscale: "true"
Expand Down Expand Up @@ -2388,7 +2388,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
grafana.com/rollout-downscale-leader: ingester-zone-b
rollout-max-unavailable: "50"
labels:
Expand Down Expand Up @@ -2520,7 +2520,7 @@ kind: StatefulSet
metadata:
annotations:
grafana.com/prepare-downscale-http-path: ingester/prepare-shutdown
grafana.com/prepare-downscale-http-port: "80"
grafana.com/prepare-downscale-http-port: "8080"
rollout-max-unavailable: "50"
labels:
grafana.com/prepare-downscale: "true"
Expand Down
Loading

0 comments on commit b26705d

Please sign in to comment.