From e16e389cce970493b02ca5ad9e9c552183042e50 Mon Sep 17 00:00:00 2001 From: Stavros Foteinopoulos Date: Fri, 3 Jan 2025 12:20:07 +0200 Subject: [PATCH] Add minAvailable poddisruptionbudget in loki-distributed Signed-off-by: Stavros Foteinopoulos --- .../poddisruptionbudget-distributor.yaml | 3 +++ .../gateway/poddisruptionbudget-gateway.yaml | 3 +++ .../poddisruptionbudget-index-gateway.yaml | 3 +++ .../poddisruptionbudget-ingester.yaml | 3 +++ .../poddisruptionbudget-memcached-chunks.yaml | 3 +++ ...oddisruptionbudget-memcached-frontend.yaml | 3 +++ ...ruptionbudget-memcached-index-queries.yaml | 3 +++ ...sruptionbudget-memcached-index-writes.yaml | 3 +++ .../querier/poddisruptionbudget-querier.yaml | 3 +++ .../poddisruptionbudget-query-frontent.yaml | 3 +++ .../poddisruptionbudget-query-scheduler.yaml | 3 +++ .../ruler/poddisruptionbudget-ruler.yaml | 3 +++ charts/loki-distributed/values.yaml | 24 +++++++++++++++++++ 13 files changed, 60 insertions(+) diff --git a/charts/loki-distributed/templates/distributor/poddisruptionbudget-distributor.yaml b/charts/loki-distributed/templates/distributor/poddisruptionbudget-distributor.yaml index 8de6fd3da9..d49b8fca9a 100644 --- a/charts/loki-distributed/templates/distributor/poddisruptionbudget-distributor.yaml +++ b/charts/loki-distributed/templates/distributor/poddisruptionbudget-distributor.yaml @@ -16,5 +16,8 @@ spec: {{- with .Values.distributor.maxUnavailable }} maxUnavailable: {{ . }} {{- end }} + {{- with .Values.distributor.minAvailable }} + minAvailable: {{ . }} + {{- end }} {{- end }} {{- end }} diff --git a/charts/loki-distributed/templates/gateway/poddisruptionbudget-gateway.yaml b/charts/loki-distributed/templates/gateway/poddisruptionbudget-gateway.yaml index 8b2279f0ee..0929d13bb0 100644 --- a/charts/loki-distributed/templates/gateway/poddisruptionbudget-gateway.yaml +++ b/charts/loki-distributed/templates/gateway/poddisruptionbudget-gateway.yaml @@ -15,5 +15,8 @@ spec: {{- with .Values.gateway.maxUnavailable }} maxUnavailable: {{ . }} {{- end }} + {{- with .Values.gateway.minAvailable }} + minAvailable: {{ . }} + {{- end }} {{- end }} {{- end }} diff --git a/charts/loki-distributed/templates/index-gateway/poddisruptionbudget-index-gateway.yaml b/charts/loki-distributed/templates/index-gateway/poddisruptionbudget-index-gateway.yaml index acf73a5811..4c79e0d4f8 100644 --- a/charts/loki-distributed/templates/index-gateway/poddisruptionbudget-index-gateway.yaml +++ b/charts/loki-distributed/templates/index-gateway/poddisruptionbudget-index-gateway.yaml @@ -15,5 +15,8 @@ spec: {{- with .Values.indexGateway.maxUnavailable }} maxUnavailable: {{ . }} {{- end }} + {{- with .Values.indexGateway.minAvailable }} + minAvailable: {{ . }} + {{- end }} {{- end }} {{- end }} diff --git a/charts/loki-distributed/templates/ingester/poddisruptionbudget-ingester.yaml b/charts/loki-distributed/templates/ingester/poddisruptionbudget-ingester.yaml index 0e56f8b096..cb7758c3c2 100644 --- a/charts/loki-distributed/templates/ingester/poddisruptionbudget-ingester.yaml +++ b/charts/loki-distributed/templates/ingester/poddisruptionbudget-ingester.yaml @@ -16,5 +16,8 @@ spec: {{- with .Values.ingester.maxUnavailable }} maxUnavailable: {{ . }} {{- end }} + {{- with .Values.ingester.minAvailable }} + minAvailable: {{ . }} + {{- end }} {{- end }} {{- end }} diff --git a/charts/loki-distributed/templates/memcached-chunks/poddisruptionbudget-memcached-chunks.yaml b/charts/loki-distributed/templates/memcached-chunks/poddisruptionbudget-memcached-chunks.yaml index 8510de5064..f92d7382d5 100644 --- a/charts/loki-distributed/templates/memcached-chunks/poddisruptionbudget-memcached-chunks.yaml +++ b/charts/loki-distributed/templates/memcached-chunks/poddisruptionbudget-memcached-chunks.yaml @@ -16,5 +16,8 @@ spec: {{- with .Values.memcachedChunks.maxUnavailable }} maxUnavailable: {{ . }} {{- end }} + {{- with .Values.memcachedChunks.minAvailable }} + minAvailable: {{ . }} + {{- end }} {{- end }} {{- end }} diff --git a/charts/loki-distributed/templates/memcached-frontend/poddisruptionbudget-memcached-frontend.yaml b/charts/loki-distributed/templates/memcached-frontend/poddisruptionbudget-memcached-frontend.yaml index b1d4966b1a..b1db2f493a 100644 --- a/charts/loki-distributed/templates/memcached-frontend/poddisruptionbudget-memcached-frontend.yaml +++ b/charts/loki-distributed/templates/memcached-frontend/poddisruptionbudget-memcached-frontend.yaml @@ -16,5 +16,8 @@ spec: {{- with .Values.memcachedFrontend.maxUnavailable }} maxUnavailable: {{ . }} {{- end }} + {{- with .Values.memcachedFrontend.minAvailable }} + minAvailable: {{ . }} + {{- end }} {{- end }} {{- end }} diff --git a/charts/loki-distributed/templates/memcached-index-queries/poddisruptionbudget-memcached-index-queries.yaml b/charts/loki-distributed/templates/memcached-index-queries/poddisruptionbudget-memcached-index-queries.yaml index 78e6b2ee88..4aafa2bc0d 100644 --- a/charts/loki-distributed/templates/memcached-index-queries/poddisruptionbudget-memcached-index-queries.yaml +++ b/charts/loki-distributed/templates/memcached-index-queries/poddisruptionbudget-memcached-index-queries.yaml @@ -16,5 +16,8 @@ spec: {{- with .Values.memcachedIndexQueries.maxUnavailable }} maxUnavailable: {{ . }} {{- end }} + {{- with .Values.memcachedIndexQueries.minAvailable }} + minAvailable: {{ . }} + {{- end }} {{- end }} {{- end }} diff --git a/charts/loki-distributed/templates/memcached-index-writes/poddisruptionbudget-memcached-index-writes.yaml b/charts/loki-distributed/templates/memcached-index-writes/poddisruptionbudget-memcached-index-writes.yaml index f444582656..7c2556c215 100644 --- a/charts/loki-distributed/templates/memcached-index-writes/poddisruptionbudget-memcached-index-writes.yaml +++ b/charts/loki-distributed/templates/memcached-index-writes/poddisruptionbudget-memcached-index-writes.yaml @@ -16,5 +16,8 @@ spec: {{- with .Values.memcachedIndexWrites.maxUnavailable }} maxUnavailable: {{ . }} {{- end }} + {{- with .Values.memcachedIndexWrites.minAvailable }} + minAvailable: {{ . }} + {{- end }} {{- end }} {{- end }} diff --git a/charts/loki-distributed/templates/querier/poddisruptionbudget-querier.yaml b/charts/loki-distributed/templates/querier/poddisruptionbudget-querier.yaml index f178a29d40..61451dbb9c 100644 --- a/charts/loki-distributed/templates/querier/poddisruptionbudget-querier.yaml +++ b/charts/loki-distributed/templates/querier/poddisruptionbudget-querier.yaml @@ -16,5 +16,8 @@ spec: {{- with .Values.querier.maxUnavailable }} maxUnavailable: {{ . }} {{- end }} + {{- with .Values.querier.minAvailable }} + minAvailable: {{ . }} + {{- end }} {{- end }} {{- end }} diff --git a/charts/loki-distributed/templates/query-frontend/poddisruptionbudget-query-frontent.yaml b/charts/loki-distributed/templates/query-frontend/poddisruptionbudget-query-frontent.yaml index f6022e8a06..fccf64f241 100644 --- a/charts/loki-distributed/templates/query-frontend/poddisruptionbudget-query-frontent.yaml +++ b/charts/loki-distributed/templates/query-frontend/poddisruptionbudget-query-frontent.yaml @@ -16,5 +16,8 @@ spec: {{- with .Values.queryFrontend.maxUnavailable }} maxUnavailable: {{ . }} {{- end }} + {{- with .Values.queryFrontend.minAvailable }} + minAvailable: {{ . }} + {{- end }} {{- end }} {{- end }} diff --git a/charts/loki-distributed/templates/query-scheduler/poddisruptionbudget-query-scheduler.yaml b/charts/loki-distributed/templates/query-scheduler/poddisruptionbudget-query-scheduler.yaml index 9b1a8937d7..eb950d2d73 100644 --- a/charts/loki-distributed/templates/query-scheduler/poddisruptionbudget-query-scheduler.yaml +++ b/charts/loki-distributed/templates/query-scheduler/poddisruptionbudget-query-scheduler.yaml @@ -16,5 +16,8 @@ spec: {{- with .Values.queryScheduler.maxUnavailable }} maxUnavailable: {{ . }} {{- end }} + {{- with .Values.queryScheduler.minAvailable }} + minAvailable: {{ . }} + {{- end }} {{- end }} {{- end }} diff --git a/charts/loki-distributed/templates/ruler/poddisruptionbudget-ruler.yaml b/charts/loki-distributed/templates/ruler/poddisruptionbudget-ruler.yaml index 09925a89a9..e418d0b3ac 100644 --- a/charts/loki-distributed/templates/ruler/poddisruptionbudget-ruler.yaml +++ b/charts/loki-distributed/templates/ruler/poddisruptionbudget-ruler.yaml @@ -15,5 +15,8 @@ spec: {{- with .Values.ruler.maxUnavailable }} maxUnavailable: {{ . }} {{- end }} + {{- with .Values.ruler.minAvailable }} + minAvailable: {{ . }} + {{- end }} {{- end }} {{- end }} diff --git a/charts/loki-distributed/values.yaml b/charts/loki-distributed/values.yaml index 701878dbee..92f16fc458 100644 --- a/charts/loki-distributed/values.yaml +++ b/charts/loki-distributed/values.yaml @@ -486,6 +486,8 @@ ingester: topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: null + # -- Pod Disruption Budget minAvailable + minAvailable: null # -- Max Surge for ingester pods maxSurge: 0 # -- Node selector for ingester pods @@ -610,6 +612,8 @@ distributor: topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: null + # -- Pod Disruption Budget minAvailable + minAvailable: null # -- Max Surge for distributor pods maxSurge: 0 # -- Node selector for distributor pods @@ -719,6 +723,8 @@ querier: topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: null + # -- Pod Disruption Budget minAvailable + minAvailable: null # -- Max Surge for querier pods maxSurge: 0 # -- Node selector for querier pods @@ -832,6 +838,8 @@ queryFrontend: topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: null + # -- Pod Disruption Budget minAvailable + minAvailable: null # -- Node selector for query-frontend pods nodeSelector: {} # -- Tolerations for query-frontend pods @@ -903,6 +911,8 @@ queryScheduler: topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: 1 + # -- Pod Disruption Budget minAvailable + minAvailable: null # -- Node selector for query-scheduler pods nodeSelector: {} # -- Tolerations for query-scheduler pods @@ -1117,6 +1127,8 @@ gateway: topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: null + # -- Pod Disruption Budget minAvailable + minAvailable: null # -- Node selector for gateway pods nodeSelector: {} # -- Tolerations for gateway pods @@ -1518,6 +1530,8 @@ ruler: topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: null + # -- Pod Disruption Budget minAvailable + minAvailable: null # -- Node selector for ruler pods nodeSelector: {} # -- Tolerations for ruler pods @@ -1671,6 +1685,8 @@ indexGateway: topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: null + # -- Pod Disruption Budget minAvailable + minAvailable: null # -- Node selector for index-gateway pods nodeSelector: {} # -- Tolerations for index-gateway pods @@ -1810,6 +1826,8 @@ memcachedChunks: topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: null + # -- Pod Disruption Budget minAvailable + minAvailable: null # -- Node selector for memcached-chunks pods nodeSelector: {} # -- Tolerations for memcached-chunks pods @@ -1879,6 +1897,8 @@ memcachedFrontend: topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: 1 + # -- Pod Disruption Budget minAvailable + minAvailable: null # -- Node selector for memcached-frontend pods nodeSelector: {} # -- Tolerations for memcached-frontend pods @@ -1944,6 +1964,8 @@ memcachedIndexQueries: topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: null + # -- Pod Disruption Budget minAvailable + minAvailable: null # -- Node selector for memcached-index-queries pods nodeSelector: {} # -- Tolerations for memcached-index-queries pods @@ -2009,6 +2031,8 @@ memcachedIndexWrites: topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: null + # -- Pod Disruption Budget minAvailable + minAvailable: null # -- Node selector for memcached-index-writes pods nodeSelector: {} # -- Tolerations for memcached-index-writes pods