Upgrade grafana-sidecar 1.28.0 → 2.6.0 + container.py port (#332)
## Summary - Upgrade grafana-sidecar from 1.28.0 to 2.6.0 (the 2.x memory regression #462 is resolved; ~35MB static overhead is acceptable) - Port build from Dockerfile to native Dagger container.py - Add liveness/readiness probes using the new /healthz endpoint on port 8080 - Update docs to reflect container.py migration and remove stale pin note ## Test plan - [ ] Build container: `mise run container-build-and-release grafana-sidecar` - [ ] Update kustomization tag with new image tag - [ ] Deploy from branch: `argocd app set grafana --revision grafana-sidecar-2.6.0 && argocd app sync grafana` - [ ] Verify sidecar health endpoint: `kubectl exec -n monitoring <pod> -c grafana-sc-dashboard -- wget -qO- http://localhost:8080/healthz` - [ ] Verify dashboards load in Grafana UI - [ ] `mise run services-check` Reviewed-on: #332
This commit is contained in:
parent
6455d93cb3
commit
61fcd5d70a
7 changed files with 83 additions and 44 deletions
1
docs/changelog.d/grafana-sidecar-2.6.0.feature.md
Normal file
1
docs/changelog.d/grafana-sidecar-2.6.0.feature.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
Upgrade grafana-sidecar from 1.28.0 to 2.6.0, adding health probes and porting build to native Dagger container.py.
|
||||
|
|
@ -34,23 +34,22 @@ mise run container-build-and-release grafana
|
|||
|
||||
## Grafana Sidecar
|
||||
|
||||
**Dockerfile:** `containers/grafana-sidecar/Dockerfile`
|
||||
**Build:** `containers/grafana-sidecar/container.py` (native Dagger)
|
||||
**Image:** `registry.ops.eblu.me/blumeops/grafana-sidecar`
|
||||
|
||||
Clones the [kiwigrid/k8s-sidecar](https://github.com/kiwigrid/k8s-sidecar) source from the forge mirror, installs Python dependencies into a venv, and copies the application into a minimal Alpine runtime image.
|
||||
Clones the [kiwigrid/k8s-sidecar](https://github.com/kiwigrid/k8s-sidecar) source from the forge mirror, installs the Python package into a venv, and copies it into a Python Alpine runtime image.
|
||||
|
||||
```fish
|
||||
# Update version in Dockerfile
|
||||
# ARG CONTAINER_APP_VERSION=1.28.0
|
||||
# Update VERSION in container.py
|
||||
|
||||
mise run container-build-and-release grafana-sidecar
|
||||
```
|
||||
|
||||
**Gotchas:**
|
||||
|
||||
- **Pinned to v1.28.0:** v2.x has a 135% memory regression ([#462](https://github.com/kiwigrid/k8s-sidecar/issues/462)) and `readOnlyRootFilesystem` crashloop ([#3936](https://github.com/grafana/helm-charts/issues/3936)). Upgrade separately after upstream fixes land.
|
||||
- **UID 65534:** Matches upstream's `nobody` user convention for non-root execution.
|
||||
- **Forge mirror name:** `mirrors/kiwigrid-grafana-sidecar` (not `k8s-sidecar`).
|
||||
- **Health endpoint:** 2.x exposes `/healthz` on port 8080 (liveness + readiness probes configured in deployment).
|
||||
|
||||
## Related
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue