forked from grafana/helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tempo-distributed] Add pdb if resource has > 1 replicas
This adds pdbs in the same manner that the loki-distributed chart does. Signed-off-by: AlexDHoffer <alexdchoffer@gmail.com>
- Loading branch information
1 parent
f942ba6
commit 31a7f23
Showing
12 changed files
with
102 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
charts/tempo-distributed/templates/compactor/poddisruptionbudget-compactor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{- if gt (int .Values.compactor.replicas) 1 }} | ||
apiVersion: policy/v1beta1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: {{ include "tempo.compactorFullname" . }} | ||
labels: | ||
{{- include "tempo.compactorLabels" . | nindent 4 }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
{{- include "tempo.compactorSelectorLabels" . | nindent 6 }} | ||
maxUnavailable: 1 | ||
{{- end }} |
13 changes: 13 additions & 0 deletions
13
charts/tempo-distributed/templates/distributor/poddisruptionbudget-distributor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{- if gt (int .Values.distributor.replicas) 1 }} | ||
apiVersion: policy/v1beta1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: {{ include "tempo.distributorFullname" . }} | ||
labels: | ||
{{- include "tempo.distributorLabels" . | nindent 4 }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
{{- include "tempo.distributorSelectorLabels" . | nindent 6 }} | ||
maxUnavailable: 1 | ||
{{- end }} |
13 changes: 13 additions & 0 deletions
13
charts/tempo-distributed/templates/gateway/poddisruptionbudget-gateway.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{- if gt (int .Values.gateway.replicas) 1 }} | ||
apiVersion: policy/v1beta1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: {{ include "tempo.gatewayFullname" . }} | ||
labels: | ||
{{- include "tempo.gatewayLabels" . | nindent 4 }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
{{- include "tempo.gatewaySelectorLabels" . | nindent 6 }} | ||
maxUnavailable: 1 | ||
{{- end }} |
13 changes: 13 additions & 0 deletions
13
charts/tempo-distributed/templates/ingester/poddisruptionbudget-ingester.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{- if gt (int .Values.ingester.replicas) 1 }} | ||
apiVersion: policy/v1beta1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: {{ include "tempo.ingesterFullname" . }} | ||
labels: | ||
{{- include "tempo.ingesterLabels" . | nindent 4 }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
{{- include "tempo.ingesterSelectorLabels" . | nindent 6 }} | ||
maxUnavailable: 1 | ||
{{- end }} |
7 changes: 7 additions & 0 deletions
7
charts/tempo-distributed/templates/memcached/_helpers-memcached.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
charts/tempo-distributed/templates/memcached/poddisruptionbudget-memcached.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{- if gt (int .Values.memcached.replicas) 1 }} | ||
apiVersion: policy/v1beta1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: {{ include "tempo.memcachedFullname" . }} | ||
labels: | ||
{{- include "tempo.memcachedLabels" . | nindent 4 }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
{{- include "tempo.memcachedSelectorLabels" . | nindent 6 }} | ||
maxUnavailable: 1 | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
charts/tempo-distributed/templates/querier/poddisruptionbudget-querier.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{- if gt (int .Values.querier.replicas) 1 }} | ||
apiVersion: policy/v1beta1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: {{ include "tempo.querierFullname" . }} | ||
labels: | ||
{{- include "tempo.querierLabels" . | nindent 4 }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
{{- include "tempo.querierSelectorLabels" . | nindent 6 }} | ||
maxUnavailable: 1 | ||
{{- end }} |
13 changes: 13 additions & 0 deletions
13
charts/tempo-distributed/templates/query-frontend/poddisruptionbudget-query-frontend.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{- if gt (int .Values.queryFrontend.replicas) 1 }} | ||
apiVersion: policy/v1beta1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: {{ include "tempo.queryFrontendFullname" . }} | ||
labels: | ||
{{- include "tempo.queryFrontendLabels" . | nindent 4 }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
{{- include "tempo.queryFrontendSelectorLabels" . | nindent 6 }} | ||
maxUnavailable: 1 | ||
{{- end }} |