Skip to content

Commit

Permalink
remove default livenessProbe for compactor and storage-gateway
Browse files Browse the repository at this point in the history
Signed-off-by: Niclas Schad <niclas.schad@gmail.com>
  • Loading branch information
nschad committed Jul 1, 2024
1 parent d88a269 commit 0e6ecc1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## master / unreleased

* [CHANGE] Removed the default `livenessProbe` for store-gateway and compactor. You can still use a `livenessProbe` but we advise against it #502
* [DEPENDENCY] Update quay.io/cortexproject/cortex Docker tag to v1.17.1 #501

## 2.3.0 / 2024-04-12
Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ Kubernetes: `^1.19.0-0`
| compactor.&ZeroWidthSpace;extraVolumeMounts | list | `[]` | |
| compactor.&ZeroWidthSpace;extraVolumes | list | `[]` | |
| compactor.&ZeroWidthSpace;initContainers | list | `[]` | |
| compactor.&ZeroWidthSpace;livenessProbe.&ZeroWidthSpace;httpGet.&ZeroWidthSpace;path | string | `"/ready"` | |
| compactor.&ZeroWidthSpace;livenessProbe.&ZeroWidthSpace;httpGet.&ZeroWidthSpace;port | string | `"http-metrics"` | |
| compactor.&ZeroWidthSpace;livenessProbe.&ZeroWidthSpace;httpGet.&ZeroWidthSpace;scheme | string | `"HTTP"` | |
| compactor.&ZeroWidthSpace;livenessProbe | list | `[]` | |
| compactor.&ZeroWidthSpace;nodeSelector | object | `{}` | |
| compactor.&ZeroWidthSpace;persistentVolume.&ZeroWidthSpace;accessModes | list | `["ReadWriteOnce"]` | compactor data Persistent Volume access modes Must match those of existing PV or dynamic provisioner Ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ |
| compactor.&ZeroWidthSpace;persistentVolume.&ZeroWidthSpace;annotations | object | `{}` | compactor data Persistent Volume Claim annotations |
Expand Down Expand Up @@ -811,9 +809,7 @@ Kubernetes: `^1.19.0-0`
| store_gateway.&ZeroWidthSpace;extraVolumeMounts | list | `[]` | |
| store_gateway.&ZeroWidthSpace;extraVolumes | list | `[]` | |
| store_gateway.&ZeroWidthSpace;initContainers | list | `[]` | |
| store_gateway.&ZeroWidthSpace;livenessProbe.&ZeroWidthSpace;httpGet.&ZeroWidthSpace;path | string | `"/ready"` | |
| store_gateway.&ZeroWidthSpace;livenessProbe.&ZeroWidthSpace;httpGet.&ZeroWidthSpace;port | string | `"http-metrics"` | |
| store_gateway.&ZeroWidthSpace;livenessProbe.&ZeroWidthSpace;httpGet.&ZeroWidthSpace;scheme | string | `"HTTP"` | |
| store_gateway.&ZeroWidthSpace;livenessProbe | list | `[]` | |
| store_gateway.&ZeroWidthSpace;nodeSelector | object | `{}` | |
| store_gateway.&ZeroWidthSpace;persistentVolume.&ZeroWidthSpace;accessModes | list | `["ReadWriteOnce"]` | Store-gateway data Persistent Volume access modes Must match those of existing PV or dynamic provisioner Ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ |
| store_gateway.&ZeroWidthSpace;persistentVolume.&ZeroWidthSpace;annotations | object | `{}` | Store-gateway data Persistent Volume Claim annotations |
Expand Down
2 changes: 2 additions & 0 deletions templates/compactor/compactor-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@ spec:
protocol: TCP
startupProbe:
{{- toYaml .Values.compactor.startupProbe | nindent 12 }}
{{- if .Values.compactor.livenessProbe }}
livenessProbe:
{{- toYaml .Values.compactor.livenessProbe | nindent 12 }}
{{- end }}
readinessProbe:
{{- toYaml .Values.compactor.readinessProbe | nindent 12 }}
resources:
Expand Down
2 changes: 2 additions & 0 deletions templates/store-gateway/store-gateway-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,10 @@ spec:
protocol: TCP
startupProbe:
{{- toYaml .Values.store_gateway.startupProbe | nindent 12 }}
{{- if .Values.store_gateway.livenessProbe }}
livenessProbe:
{{- toYaml .Values.store_gateway.livenessProbe | nindent 12 }}
{{- end }}
readinessProbe:
{{- toYaml .Values.store_gateway.readinessProbe | nindent 12 }}
resources:
Expand Down
12 changes: 2 additions & 10 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1410,11 +1410,7 @@ store_gateway:
path: /ready
port: http-metrics
scheme: HTTP
livenessProbe:
httpGet:
path: /ready
port: http-metrics
scheme: HTTP
livenessProbe: []
readinessProbe:
httpGet:
path: /ready
Expand Down Expand Up @@ -1530,11 +1526,7 @@ compactor:
path: /ready
port: http-metrics
scheme: HTTP
livenessProbe:
httpGet:
path: /ready
port: http-metrics
scheme: HTTP
livenessProbe: []
readinessProbe:
httpGet:
path: /ready
Expand Down

0 comments on commit 0e6ecc1

Please sign in to comment.