Skip to content

feat: add statefulset image overrides #28

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

Merged
merged 5 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion coder-observability/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ dependencies:
repository: https://grafana.github.io/helm-charts
version: 0.37.0
digest: sha256:05e0dae0200cabf5cb9e2cfb18a4e166fcaceefaf39827addff4299b18c31d4e
generated: "2024-11-04T08:35:11.202671Z"
generated: "2025-01-15T20:35:57.318818175Z"
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ spec:
app.kubernetes.io/name: "database-stats"
spec:
containers:
- name: postgres-exporter
image: quay.io/prometheuscommunity/postgres-exporter
- name: {{ .Values.global.postgres.exporter.containerName }}
image: {{ .Values.global.postgres.exporter.image }}
args:
- --collector.long_running_transactions
ports:
Expand Down
4 changes: 2 additions & 2 deletions coder-observability/templates/statefulset-runbook-viewer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ spec:
app: runbook-viewer
spec:
containers:
- name: madness
image: dannyben/madness
- name: {{ .Values.runbook.containerName }}
image: {{ .Values.runbook.image }}
ports:
- containerPort: 3000
name: madness
Expand Down
4 changes: 2 additions & 2 deletions coder-observability/templates/statefulset-sql-exporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ spec:
app.kubernetes.io/name: "database-stats"
spec:
containers:
- name: sql-exporter
image: burningalchemist/sql_exporter
- name: {{ .Values.sqlExporter.containerName }}
image: {{ .Values.sqlExporter.image }}
args:
- -config.file=/cfg/config.yaml
ports:
Expand Down
11 changes: 11 additions & 0 deletions coder-observability/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ global:
sslmode: disable
# ensure that your secret has a field named `PGPASSWORD`
mountSecret: "secret-postgres"
exporter:
containerName: "postgres-exporter"
image: "quay.io/prometheuscommunity/postgres-exporter"

# global.postgres.alerts -- alerts for postgres
alerts:
Expand Down Expand Up @@ -146,6 +149,14 @@ global:
# global.dashboards.queryTimeout -- how long until a query in Grafana will timeout after
queryTimeout: 900

runbook:
containerName: "madness"
image: "dannyben/madness"

sqlExporter:
containerName: "sql-exporter"
image: "burningalchemist/sql_exporter"

grafana-agent:
enabled: true
fullnameOverride: grafana-agent
Expand Down
Loading