Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rhobs]: fix store and compactor deployment #636

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ parameters:
- name: REPLICAS
value: "1"
- name: CPU_REQUEST
value: "15"
value: "2"
- name: MEMORY_LIMIT
value: 200Gi
value: 24Gi
- name: MEMORY_REQUEST
value: 200Gi
value: 24Gi
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ objects:
name: hashmod-config
- configMap:
defaultMode: 511
name: thanos-store
name: hashmod-config-template-default
name: hashmod-config-template-default
name: hashmod-config-template
updateStrategy: {}
volumeClaimTemplates:
- metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ parameters:
- name: REPLICAS
value: "1"
- name: CPU_REQUEST
value: "15"
value: "2"
- name: MEMORY_LIMIT
value: 200Gi
value: 24Gi
- name: MEMORY_REQUEST
value: 200Gi
value: 24Gi
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ objects:
name: hashmod-config
- configMap:
defaultMode: 511
name: thanos-store
name: hashmod-config-template-rhel
name: hashmod-config-template-rhel
name: hashmod-config-template
updateStrategy: {}
volumeClaimTemplates:
- metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ parameters:
- name: REPLICAS
value: "1"
- name: CPU_REQUEST
value: "15"
value: "2"
- name: MEMORY_LIMIT
value: 200Gi
value: 24Gi
- name: MEMORY_REQUEST
value: 200Gi
value: 24Gi
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ objects:
name: hashmod-config
- configMap:
defaultMode: 511
name: thanos-store
name: hashmod-config-template-telemeter
name: hashmod-config-template-telemeter
name: hashmod-config-template
updateStrategy: {}
volumeClaimTemplates:
- metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ parameters:
- name: REPLICAS
value: "1"
- name: CPU_REQUEST
value: "15"
value: "2"
- name: MEMORY_LIMIT
value: 200Gi
value: 24Gi
- name: MEMORY_REQUEST
value: 200Gi
value: 24Gi
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ objects:
name: hashmod-config
- configMap:
defaultMode: 511
name: thanos-store
name: hashmod-config-template-default
name: hashmod-config-template-default
name: hashmod-config-template
updateStrategy: {}
volumeClaimTemplates:
- metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ parameters:
- name: REPLICAS
value: "1"
- name: CPU_REQUEST
value: "15"
value: "2"
- name: MEMORY_LIMIT
value: 200Gi
value: 24Gi
- name: MEMORY_REQUEST
value: 200Gi
value: 24Gi
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ objects:
name: hashmod-config
- configMap:
defaultMode: 511
name: thanos-store
name: hashmod-config-template-rhel
name: hashmod-config-template-rhel
name: hashmod-config-template
updateStrategy: {}
volumeClaimTemplates:
- metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ parameters:
- name: REPLICAS
value: "1"
- name: CPU_REQUEST
value: "15"
value: "2"
- name: MEMORY_LIMIT
value: 200Gi
value: 24Gi
- name: MEMORY_REQUEST
value: 200Gi
value: 24Gi
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ objects:
name: hashmod-config
- configMap:
defaultMode: 511
name: thanos-store
name: hashmod-config-template-telemeter
name: hashmod-config-template-telemeter
name: hashmod-config-template
updateStrategy: {}
volumeClaimTemplates:
- metadata:
Expand Down
10 changes: 5 additions & 5 deletions services_go/observatorium/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ func (o ObservatoriumMetrics) makeTenantReceiveIngestor(instanceCfg *Observatori
ingestor.VolumeType = "gp2"
ingestor.VolumeSize = "50Gi"
delete(ingestor.PodResources.Limits, corev1.ResourceCPU)
ingestor.PodResources.Requests[corev1.ResourceCPU] = resource.MustParse("15")
ingestor.PodResources.Requests[corev1.ResourceMemory] = resource.MustParse("200Gi")
ingestor.PodResources.Limits[corev1.ResourceMemory] = resource.MustParse("200Gi")
ingestor.PodResources.Requests[corev1.ResourceCPU] = resource.MustParse("2")
ingestor.PodResources.Requests[corev1.ResourceMemory] = resource.MustParse("24Gi")
ingestor.PodResources.Limits[corev1.ResourceMemory] = resource.MustParse("24Gi")
ingestor.Env = deleteObjStoreEnv(ingestor.Env) // delete the default objstore env vars
ingestor.Env = append(ingestor.Env, objStoreEnvVars(instanceCfg.ObjStoreSecret)...)
ingestor.Sidecars = []k8sutil.ContainerProvider{makeJaegerAgent("observatorium-tools")}
Expand Down Expand Up @@ -530,11 +530,11 @@ func (o ObservatoriumMetrics) makeStore(instanceCfg *ObservatoriumMetricsInstanc
EmptyDir: &corev1.EmptyDirVolumeSource{},
},
}, corev1.Volume{
Name: hasmodCMName,
Name: "hashmod-config-template",
VolumeSource: corev1.VolumeSource{
ConfigMap: &corev1.ConfigMapVolumeSource{
LocalObjectReference: corev1.LocalObjectReference{
Name: storeStatefulSet.CommonLabels[k8sutil.NameLabel],
Name: hasmodCMName,
},
DefaultMode: &defaultMode,
},
Expand Down
Loading