Watch
0
0
Fork
You've already forked hyperhive
0

k8s: render the in-cluster services' manifests from their units

services.hyperhive.k8s.enable renders a Deployment (swarm-controller,
swarm-notify-router) or CronJob (swarm-ci-metrics) per service this host
deploys into system.build.k8sManifests. The renderer reads each evaluated
unit: its environment, LoadCredential ids, state and runtime directories,
ExecStart and timer. Files the unit names are mounted at the same paths, so
the environment carries over as it is. Secrets are referenced by name only.

No unit changes. checks: k8s-manifests-all-local (kubeconform -strict,
offline schemas) and module-eval-k8s; the allLocal fixture turns the
rendering on.
This commit is contained in:
atlas 2026-11-19 10:08:27 +01:00 • committed by maia
commit e587fd44cd

View file

@ -45,8 +45,10 @@ in
bareWithController = hiveWithController { };
# With the k8s manifests rendered too, which changes no unit.
allLocal = hiveWithController {
deploy.singleHostSwarm = true;
k8s.enable = true;
deploy.victorialogs.authPackage = marker "logs";
deploy.victorialogs.grafanaAuthPackage = marker "logs-grafana";
deploy.victoriametrics.authPackage = marker "metrics";