diff --git a/charts/inference-stack/Chart.lock b/charts/inference-stack/Chart.lock index fec3bb5..30a477e 100644 --- a/charts/inference-stack/Chart.lock +++ b/charts/inference-stack/Chart.lock @@ -4,12 +4,12 @@ dependencies: version: 1.110.2 - name: prometheus repository: https://prometheus-community.github.io/helm-charts - version: 27.3.0 + version: 30.0.1 - name: grafana repository: https://grafana.github.io/helm-charts version: 8.8.2 - name: lens repository: oci://ghcr.io/berriai/charts version: 0.5.0 -digest: sha256:b7282cb0885dde3a1fa54ee47e79bdaeb6b13cdff4f6d2ac36969d906e3a926c -generated: "2026-11-26T00:27:06.908160254Z" +digest: sha256:d4cfafbfe7354c22f2b73238e39a9948169e22aad940a031e82cccc454a57c77 +generated: "2026-11-26T00:35:49.348153214Z" diff --git a/charts/inference-stack/Chart.yaml b/charts/inference-stack/Chart.yaml index 72d0361..ce4cdcd 100644 --- a/charts/inference-stack/Chart.yaml +++ b/charts/inference-stack/Chart.yaml @@ -10,7 +10,7 @@ dependencies: version: 1.110.2 repository: oci://ghcr.io/berriai - name: prometheus - version: 27.3.0 + version: 30.0.1 repository: https://prometheus-community.github.io/helm-charts - name: grafana version: 8.8.2 diff --git a/compose/docker-compose.yaml b/compose/docker-compose.yaml index 2aee037..708bdd7 100644 --- a/compose/docker-compose.yaml +++ b/compose/docker-compose.yaml @@ -103,7 +103,7 @@ services: - epp prometheus: - image: prom/prometheus:v3.1.0 + image: quay.io/prometheus/prometheus:v3.16.0 volumes: - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro - router-state:/state:ro diff --git a/docs/setup.md b/docs/setup.md index 79be031..29edbfb 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -206,13 +206,15 @@ curl -fsSL https://github.com/BerriAI/inference-stack/releases/download/v0.4.1/i When updating a Docker install that predates the Grafana volume, run the installer before removing or recreating the old Grafana container. The installer copies its dashboards and other Grafana data into the new volume. A stopped container can still be migrated. -For an existing Kubernetes cluster, update the chart while retaining your values: +For an existing Kubernetes cluster, update the chart while retaining your explicitly set values and accepting the new chart defaults: ```bash helm upgrade inference-stack https://github.com/BerriAI/inference-stack/releases/download/v0.4.1/inference-stack-0.4.1.tgz \ --namespace inference --reset-then-reuse-values --set-string launcher.image=ghcr.io/berriai/inference-stack/launcher:0.4.1 --wait ``` +Use `--reset-then-reuse-values` rather than `--reuse-values` when upgrading to Prometheus chart 30.0.1. Reusing the old defaults can load duplicate scrape jobs and prevent Prometheus from starting. If you explicitly configured `prometheus.serverFiles."prometheus.yml".scrape_configs`, migrate those jobs to `prometheus.scrapeConfigs` first; see the [upstream migration notes](https://github.com/prometheus-community/helm-charts/blob/prometheus-30.0.1/charts/prometheus/README.md#to-280). + After the chart update, rerun the [Kubernetes setup command](#kubernetes) to reconnect. Open the launcher and LiteLLM to confirm both are reachable. For AWS, launch a new stack with this release and a different stack name. Deploy your models and create application keys there. Keep the original installation until requests work in the new one, then [delete the original stack](#aws). Updating only the launcher image does not update its AWS infrastructure. diff --git a/tests/test_charts.py b/tests/test_charts.py index 6dc8b25..023d314 100644 --- a/tests/test_charts.py +++ b/tests/test_charts.py @@ -11,6 +11,22 @@ class ChartTests(unittest.TestCase): + @unittest.skipUnless(shutil.which("helm"), "Helm is required for chart contract checks") + def test_prometheus_server_image_matches_compose(self): + root = Path(__file__).resolve().parents[1] + compose = yaml.safe_load((root / "compose/docker-compose.yaml").read_text()) + result = subprocess.run( + ["helm", "template", "inference-stack", str(root / "charts/inference-stack"), + "--set-string", "litellm.postgresql.auth.password=test-only-database-password-0123456789", + "--set-string", "litellm.postgresql.auth.postgres-password=test-only-database-admin-0123456789"], + text=True, capture_output=True, timeout=20, check=True, + ) + server = next(r for r in yaml.safe_load_all(result.stdout) + if r and r["kind"] == "Deployment" and r["metadata"]["name"] == "inference-stack-prometheus") + containers = server["spec"]["template"]["spec"]["containers"] + prometheus = next(c for c in containers if c["name"] == "prometheus-server") + self.assertEqual(prometheus["image"], compose["services"]["prometheus"]["image"]) + @unittest.skipUnless(shutil.which("helm"), "Helm is required for chart contract checks") def test_mixed_gpu_fleet_schedules_on_matching_capacity(self): chart = Path(__file__).resolve().parents[1] / "charts/model"