From dfc2ef7e8b21ffcd7b0fd3ae515a15f3df13ccfa Mon Sep 17 00:00:00 2001 From: Ankit Mehta Date: Fri, 11 Mar 2022 18:28:20 -0500 Subject: [PATCH] Add podManagementPolicy to store gateway statefulset template (#332) Signed-off-by: Ankit Mehta --- CHANGELOG.md | 4 +++- README.md | 1 + templates/store-gateway/store-gateway-statefulset.yaml | 1 + values.yaml | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c0e9d39b..5e5ae451 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,9 @@ ## master / unreleased -## 1.4.0 / 2022-03-11 +* [ENHANCEMENT] Allow StoreGateway podManagementPolicy to be changed #332 + +## 1.4.0 / 2022-03-08 * [ENHANCEMENT] Upgrade to Cortex v1.11.1 #331 * [ENHANCEMENT] Includes enable flags for each component #319 diff --git a/README.md b/README.md index 6f82176b..2c8562b8 100644 --- a/README.md +++ b/README.md @@ -716,6 +716,7 @@ Kubernetes: `^1.19.0-0` | store_gateway.​podAnnotations | object | `{"prometheus.io/port":"8080","prometheus.io/scrape":"true"}` | Pod Annotations | | store_gateway.​podDisruptionBudget.​maxUnavailable | int | `1` | | | store_gateway.​podLabels | object | `{}` | Pod Labels | +| store_gateway.​podManagementPolicy | string | `"OrderedReady"` | https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies | | store_gateway.​readinessProbe.​httpGet.​path | string | `"/ready"` | | | store_gateway.​readinessProbe.​httpGet.​port | string | `"http-metrics"` | | | store_gateway.​replicas | int | `1` | | diff --git a/templates/store-gateway/store-gateway-statefulset.yaml b/templates/store-gateway/store-gateway-statefulset.yaml index a20f269e..657f2e11 100644 --- a/templates/store-gateway/store-gateway-statefulset.yaml +++ b/templates/store-gateway/store-gateway-statefulset.yaml @@ -16,6 +16,7 @@ spec: {{- include "cortex.storeGatewaySelectorLabels" . | nindent 6 }} updateStrategy: {{- toYaml .Values.store_gateway.strategy | nindent 4 }} + podManagementPolicy: {{ .Values.store_gateway.podManagementPolicy | quote }} serviceName: {{ template "cortex.fullname" . }}-store-gateway-headless {{- if .Values.store_gateway.persistentVolume.enabled }} volumeClaimTemplates: diff --git a/values.yaml b/values.yaml index 30204a1e..a9574dad 100644 --- a/values.yaml +++ b/values.yaml @@ -1180,6 +1180,8 @@ nginx: store_gateway: enabled: true replicas: 1 + # -- https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies + podManagementPolicy: OrderedReady service: annotations: {}