Watch
0
0
Fork
You've already forked hyperhive
0

require k8s: swarm services with a pod run in the cluster only

This commit is contained in:
atlas 2026-11-26 00:36:09 +01:00 • committed by maia
commit 44670249b6

View file

@ -1,7 +1,6 @@
# Kubernetes manifests for the swarm services this host deploys, rendered by
# ./render.nix from their systemd units, and the per-service switch that moves
# a service between its host unit and the cluster (./runtime.nix). Rendering
# alone changes no unit and applies nothing. docs/4-implementation/k8s/manifests.md
# ./render.nix from their systemd units, and the module that applies them to the
# cluster (./runtime.nix). docs/4-implementation/k8s/manifests.md
# and runtime.md have the design.
{
pkgs,
@ -41,9 +40,7 @@ in
object, and the images their pods run into `system.build.k8sImages`.
The manifests reference their Secrets by name only.
Rendering only: the host's units stay as they are, and nothing
applies the manifests to a cluster. A service with a `runtime` option
is applied when it says `k8s`, on a host with
The manifests are applied on a host with
{option}`services.hyperhive.deploy.k8s.enable`.
'';
};
@ -59,8 +56,8 @@ in
readOnly = true;
internal = true;
description = ''
What ./runtime.nix moves services with: each enabled service's
objects and switch, the namespace object, and the CA ConfigMap's name
What ./runtime.nix applies: each enabled service's
objects, the namespace object, and the CA ConfigMap's name
and host files.
'';
};
@ -71,7 +68,7 @@ in
inherit (rendered)
caConfigMap
caSources
switches
serviceNames
userNamespaces
;
services = withoutContext rendered.services;