Skip to content

Commit

Permalink
resolve comments to remove topology from prometheus, stackdriver & da…
Browse files Browse the repository at this point in the history
…emonset
  • Loading branch information
velotioaastha committed Dec 18, 2024
1 parent db5c8d6 commit 10a0c21
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 36 deletions.
6 changes: 3 additions & 3 deletions charts/operator-wandb/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies:
version: 25.3.5
- name: etcd
repository: oci://registry-1.docker.io/bitnamicharts
version: 10.6.1
version: 10.7.1
- name: bufstream
repository: file://charts/bufstream
version: 0.3.1
Expand All @@ -56,5 +56,5 @@ dependencies:
- name: wandb-base
repository: file://../wandb-base
version: 0.1.1
digest: sha256:1eb284a2d6588f3e3d90293abb99f0e25b02fd62a87758f023d809879a82e31d
generated: "2024-12-06T11:08:12.69179-08:00"
digest: sha256:3c02029e1921428d7f45866291a8c42b79894505ee47864c54f34fcd847b2793
generated: "2024-12-18T18:29:20.054295+05:30"
2 changes: 1 addition & 1 deletion charts/operator-wandb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: operator-wandb
description: A Helm chart for deploying W&B to Kubernetes
type: application
version: 0.21.8
version: 0.21.9
appVersion: 1.0.0
icon: https://wandb.ai/logo.svg

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ spec:
{{- include "wandb.nodeSelector" . | nindent 6 }}
{{- include "wandb.priorityClassName" . | nindent 6 }}
{{- include "wandb.podSecurityContext" .Values.pod.securityContext | nindent 6 }}
{{- if .Values.topologySpreadConstraints.enabled }}
{{- include "wandb.topologySpreadConstraints" (dict "matchLabels" (fromYaml (include "otelAgent.labels" .))) | nindent 6 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
2 changes: 0 additions & 2 deletions charts/operator-wandb/charts/otel/values.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
daemonset:
install: true
mode: "daemonset"
topologySpreadConstraints:
enabled: false
presets:
receivers:
hostMetrics: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ spec:
{{- include "wandb.nodeSelector" . | nindent 6 }}
{{- include "wandb.priorityClassName" . | nindent 6 }}
{{- include "wandb.podSecurityContext" .Values.pod.securityContext | nindent 6 }}
{{- if .Values.topologySpreadConstraints.enabled }}
{{- include "wandb.topologySpreadConstraints" (dict "matchLabels" (fromYaml (include "mysql-exporter.labels" .))) | nindent 6 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ pod:
labels: {}
annotations: {}

topologySpreadConstraints:
enabled: false

common:
labels: {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ spec:
{{- include "wandb.nodeSelector" . | nindent 6 }}
{{- include "wandb.priorityClassName" . | nindent 6 }}
{{- include "wandb.podSecurityContext" .Values.pod.securityContext | nindent 6 }}
{{- if .Values.topologySpreadConstraints.enabled }}
{{- include "wandb.topologySpreadConstraints" (dict "matchLabels" (fromYaml (include "redis-exporter.labels" .))) | nindent 6 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ pod:
labels: {}
annotations: {}

topologySpreadConstraints:
enabled: false

common:
labels: {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ spec:
{{- include "wandb.nodeSelector" . | nindent 6 }}
{{- include "wandb.priorityClassName" . | nindent 6 }}
{{- include "wandb.podSecurityContext" .Values.pod.securityContext | nindent 6 }}
{{- if .Values.topologySpreadConstraints.enabled }}
{{- include "wandb.topologySpreadConstraints" (dict "matchLabels" (fromYaml (include "stackdriver.labels" .))) | nindent 6 }}
{{- end }}
spec:
containers:
- name: {{ .Chart.Name }}
Expand Down
3 changes: 0 additions & 3 deletions charts/operator-wandb/charts/stackdriver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ container:
readOnlyRootFilesystem: false
privileged: false

topologySpreadConstraints:
enabled: false

deployment: {}

serviceAccount:
Expand Down
11 changes: 2 additions & 9 deletions charts/operator-wandb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,9 @@ prometheus:

redis-exporter:
install: true
topologySpreadConstraints:
enabled: false

mysql-exporter:
install: true
topologySpreadConstraints:
enabled: false

stackdriver:
install: false
Expand All @@ -342,18 +338,15 @@ stackdriver:
prometheus.io/port: "9255"
prometheus.io/path: "/metrics"
prometheus.io/scheme: http
topologySpreadConstraints:
enabled: false

otel:
install: true

# Consider deploying with a deployment rather than a daemonset to avoid
# redundant metrics. In setups where both are scraping the same endpoints,
# this redundancy occurs as both scrape the same points.
daemonset:
install: false
topologySpreadConstraints:
enabled: false
install: true

# By default, we use only the daemonset which, along with the Prometheus
# receiver, gathers most necessary metrics.
Expand Down

0 comments on commit 10a0c21

Please sign in to comment.