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:
parent
5a884a8d09
commit
d2acf3080a
1 changed files with 773 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue