require k8s: swarm services with a pod run in the cluster only
This commit is contained in:
parent
272af0b3e8
commit
57d40ae8ea
1 changed files with 1044 additions and 3125 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue