-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A proposal for a helm chart that supports a monolithic
deployment. The same chart is used for monolithic, as was existing for the microservices deployment mode. To do this a new parameter 'deploymentMode' has been added to the helm chart. All charts are adapted to deploy services when applicable according to the deployment model. A new template is being added that installs the monolithic mimir container. All nginx endpoints are updated to direct to the monolithic service if this deployment mode has been chosen. The name of the chart has not been updated from 'mimir-distributed' to 'mimir' yet. This allows for an easier maintenance as long as this is not merged. Ideally the rename happens when merging to avoid further confusion. I attached a monolithic.yaml yaml file that I have used to do a monolithic setup. In monolithic mode, publish not ready addresses and use these for the frontend. The read-write mode could be added in the future. The alert manager is not included in the monolithic deployment. If you want to run it, you can run it in a seperate pod by enabling it. The zone aware reploication functionality is supported int he monolithic deployment with a similar confiuction as required for ingester or store gateway. I have also added the functionality to enable compression for the monolithic chart. Ideally this would be embedded into the complete chart instead. A common configuration is probably the easiest, if you want grpc message compression, I guess you want it everywhere. The common configuration setting can then also be used in the monolithic approach.
- Loading branch information
1 parent
86a63fb
commit b068f97
Showing
85 changed files
with
827 additions
and
34 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
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,81 @@ | ||
# This is an example setup for monolithic mimir deployment | ||
|
||
deploymentMode: monolithic | ||
|
||
fullnameOverride: mimir | ||
|
||
serviceAccount: | ||
annotations: | ||
"eks.amazonaws.com/role-arn": "arn:aws:iam::829850591703:role/multi-az-eks-multi-az-mimir" | ||
|
||
mimir: | ||
structuredConfig: | ||
limits: | ||
# Delete from storage metrics data older than 62 days. | ||
compactor_blocks_retention_period: 62d | ||
common: | ||
storage: | ||
backend: s3 | ||
s3: | ||
endpoint: s3.eu-west-1.amazonaws.com | ||
region: eu-west-1 | ||
blocks_storage: | ||
storage_prefix: blocks | ||
s3: | ||
bucket_name: multi-az-eks-multi-az-mimir | ||
alertmanager_storage: | ||
storage_prefix: alertmanager | ||
s3: | ||
bucket_name: multi-az-eks-multi-az-mimir | ||
ruler_storage: | ||
storage_prefix: ruler | ||
s3: | ||
bucket_name: multi-az-eks-multi-az-mimir | ||
|
||
monolithic: | ||
replicas: 3 | ||
persistentVolume: | ||
enabled: true | ||
size: "8Gi" | ||
storageClass: gp3-3000-125 | ||
priorityClassName: "optional-rescheduling-priority-multi-az" | ||
# The zone aware replication doesn't yet make a lot of difference, since it is not used at query side yet. This is | ||
# however planned in an upcoming release, and therefore it's best to have this configuration already enabled. | ||
zoneAwareReplication: | ||
enabled: true | ||
topologyKey: "topology.kubernetes.io/zone" # This generates default anti-affinity rules | ||
zones: # Zone list has to be fully redefined for modification. Update with you actual zones or skip to use logical zones only. | ||
- name: zone-a | ||
nodeSelector: | ||
topology.kubernetes.io/zone: eu-west-1a | ||
- name: zone-b | ||
nodeSelector: | ||
topology.kubernetes.io/zone: eu-west-1b | ||
- name: zone-c | ||
nodeSelector: | ||
topology.kubernetes.io/zone: eu-west-1c | ||
compression: | ||
enabled: true | ||
|
||
nginx: | ||
replicas: 1 | ||
priorityClassName: "mandatory-rescheduling-priority-multi-az" | ||
ingress: | ||
enabled: true | ||
hosts: | ||
- host: "mimir.multi-az.test.ngdata.com" | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
tls: | ||
# empty, disabled. | ||
|
||
# Disable Minio, we use S3 storage instead | ||
minio: | ||
enabled: false | ||
replicas: 0 | ||
|
||
# The Alert manager is currently not used. When enabling, it has to be configured for zone aware replication similar to | ||
# monolithic setup. | ||
alertmanager: | ||
enabled: false |
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
2 changes: 2 additions & 0 deletions
2
operations/helm/charts/mimir-distributed/templates/alertmanager/alertmanager-pdb.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{{- if has .Values.deploymentMode (list "microservices" "monolithic")}} | ||
{{- if .Values.alertmanager.enabled -}} | ||
{{- include "mimir.lib.podDisruptionBudget" (dict "ctx" $ "component" "alertmanager" "memberlist" true) }} | ||
{{- end -}} | ||
{{- end }} |
2 changes: 2 additions & 0 deletions
2
operations/helm/charts/mimir-distributed/templates/alertmanager/alertmanager-servmon.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{{- if has .Values.deploymentMode (list "microservices" "monolithic")}} | ||
{{- if .Values.alertmanager.enabled -}} | ||
{{- include "mimir.lib.serviceMonitor" (dict "ctx" $ "component" "alertmanager" "memberlist" true) }} | ||
{{- end -}} | ||
{{- 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
2 changes: 2 additions & 0 deletions
2
operations/helm/charts/mimir-distributed/templates/chunks-cache/chunks-cache-pdb.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{{- if eq .Values.deploymentMode "microservices" }} | ||
{{- if index .Values "chunks-cache" "enabled" }} | ||
{{- include "mimir.lib.podDisruptionBudget" (dict "ctx" $ "component" "chunks-cache") }} | ||
{{- end -}} | ||
{{- end }} |
2 changes: 2 additions & 0 deletions
2
operations/helm/charts/mimir-distributed/templates/chunks-cache/chunks-cache-servmon.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{{- if eq .Values.deploymentMode "microservices" }} | ||
{{- if index .Values "chunks-cache" "enabled" }} | ||
{{- include "mimir.lib.serviceMonitor" (dict "ctx" $ "component" "chunks-cache") }} | ||
{{- end -}} | ||
{{- end }} |
2 changes: 2 additions & 0 deletions
2
...ations/helm/charts/mimir-distributed/templates/chunks-cache/chunks-cache-statefulset.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 |
---|---|---|
@@ -1 +1,3 @@ | ||
{{- if eq .Values.deploymentMode "microservices" }} | ||
{{- include "mimir.memcached.statefulSet" (dict "ctx" $ "component" "chunks-cache" ) }} | ||
{{- end }} |
2 changes: 2 additions & 0 deletions
2
...tions/helm/charts/mimir-distributed/templates/chunks-cache/chunks-cache-svc-headless.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 |
---|---|---|
@@ -1 +1,3 @@ | ||
{{- if eq .Values.deploymentMode "microservices" }} | ||
{{- include "mimir.memcached.service" (dict "ctx" $ "component" "chunks-cache" ) }} | ||
{{- end }} |
2 changes: 2 additions & 0 deletions
2
operations/helm/charts/mimir-distributed/templates/compactor/compactor-pdb.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 |
---|---|---|
@@ -1 +1,3 @@ | ||
{{- if eq .Values.deploymentMode "microservices" }} | ||
{{- include "mimir.lib.podDisruptionBudget" (dict "ctx" $ "component" "compactor" "memberlist" true) }} | ||
{{- end }} |
2 changes: 2 additions & 0 deletions
2
operations/helm/charts/mimir-distributed/templates/compactor/compactor-servmon.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 |
---|---|---|
@@ -1 +1,3 @@ | ||
{{- if eq .Values.deploymentMode "microservices" }} | ||
{{- include "mimir.lib.serviceMonitor" (dict "ctx" $ "component" "compactor" "memberlist" true) }} | ||
{{- 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
2 changes: 2 additions & 0 deletions
2
operations/helm/charts/mimir-distributed/templates/distributor/distributor-pdb.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 |
---|---|---|
@@ -1 +1,3 @@ | ||
{{- if eq .Values.deploymentMode "microservices" }} | ||
{{- include "mimir.lib.podDisruptionBudget" (dict "ctx" $ "component" "distributor" "memberlist" true) }} | ||
{{- end }} |
2 changes: 2 additions & 0 deletions
2
operations/helm/charts/mimir-distributed/templates/distributor/distributor-servmon.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 |
---|---|---|
@@ -1 +1,3 @@ | ||
{{- if eq .Values.deploymentMode "microservices" }} | ||
{{- include "mimir.lib.serviceMonitor" (dict "ctx" $ "component" "distributor" "memberlist" true) }} | ||
{{- 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
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
2 changes: 2 additions & 0 deletions
2
operations/helm/charts/mimir-distributed/templates/gateway/gateway-pdb.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{{- if eq .Values.deploymentMode "microservices" }} | ||
{{- if eq (include "mimir.gateway.isEnabled" .) "true" -}} | ||
{{- include "mimir.lib.podDisruptionBudget" (dict "ctx" $ "component" "gateway") }} | ||
{{- end -}} | ||
{{- 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
2 changes: 2 additions & 0 deletions
2
operations/helm/charts/mimir-distributed/templates/gateway/gateway-servmon.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{{- if eq .Values.deploymentMode "microservices" }} | ||
{{- if and (eq (include "mimir.gateway.isEnabled" .) "true") (not .Values.gateway.enabledNonEnterprise) -}} | ||
{{- include "mimir.lib.serviceMonitor" (dict "ctx" $ "component" "gateway") }} | ||
{{- end -}} | ||
{{- 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
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
Oops, something went wrong.