Skip to content

Commit

Permalink
Add podManagementPolicy to store gateway statefulset template (#332)
Browse files Browse the repository at this point in the history
Signed-off-by: Ankit Mehta <ankit.mehta@appian.com>
  • Loading branch information
mehta-ankit authored Mar 11, 2022
1 parent 3cd0bb0 commit dfc2ef7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,7 @@ Kubernetes: `^1.19.0-0`
| store_gateway.&ZeroWidthSpace;podAnnotations | object | `{"prometheus.io/port":"8080","prometheus.io/scrape":"true"}` | Pod Annotations |
| store_gateway.&ZeroWidthSpace;podDisruptionBudget.&ZeroWidthSpace;maxUnavailable | int | `1` | |
| store_gateway.&ZeroWidthSpace;podLabels | object | `{}` | Pod Labels |
| store_gateway.&ZeroWidthSpace;podManagementPolicy | string | `"OrderedReady"` | https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies |
| store_gateway.&ZeroWidthSpace;readinessProbe.&ZeroWidthSpace;httpGet.&ZeroWidthSpace;path | string | `"/ready"` | |
| store_gateway.&ZeroWidthSpace;readinessProbe.&ZeroWidthSpace;httpGet.&ZeroWidthSpace;port | string | `"http-metrics"` | |
| store_gateway.&ZeroWidthSpace;replicas | int | `1` | |
Expand Down
1 change: 1 addition & 0 deletions templates/store-gateway/store-gateway-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Expand Down

0 comments on commit dfc2ef7

Please sign in to comment.