require k8s: swarm services with a pod run in the cluster only
This commit is contained in:
parent
7819ed2dbd
commit
2e1f037f25
1 changed files with 1044 additions and 3125 deletions
|
|
@ -3,14 +3,13 @@
|
|||
# `swarm-nats` container.
|
||||
#
|
||||
# The callout issuer and user keys live in the swarm secret store beside the
|
||||
# callout xkey: `swarm-bao-nats-callout-xkey` in ./swarm-nats.nix creates
|
||||
# them there, and the server renders their public halves from the store. A
|
||||
# callout xkey: the queue pod's `callout-config` init container (./swarm-nats.nix)
|
||||
# creates them there, and the server renders their public halves from the store. A
|
||||
# definition of a removed option fails evaluation with a message, under its
|
||||
# `deploy.nats` path and under the `swarm.nats` one older configs use.
|
||||
#
|
||||
# The host seed files under /var/lib/swarm-nats-callout are NOT removed here:
|
||||
# that unit stores each one before it removes it, and a tmpfiles rule could
|
||||
# run first.
|
||||
# they may hold the only copy of a key the store lacks.
|
||||
#
|
||||
# Self-contained and deletable, like ./host-ca-removed.nix: one file to
|
||||
# remove when the deprecation window closes.
|
||||
|
|
@ -18,16 +17,15 @@
|
|||
let
|
||||
inStore = ''
|
||||
The queue's callout issuer and user keys live in the swarm secret store:
|
||||
swarm-bao-nats-callout-xkey creates them there, and the server renders
|
||||
their public halves from it. Remove this definition. See
|
||||
the queue pod's callout-config init container creates them there, and the
|
||||
server renders their public halves from it. Remove this definition. See
|
||||
docs/2-handbook/swarm/credentials.md.
|
||||
'';
|
||||
# The seed-file options name a key an operator may want to keep.
|
||||
seedFile = name: ''
|
||||
${inStore}
|
||||
A seed at /var/lib/swarm-nats-callout/${name} is what that unit stores
|
||||
when the store holds none, so a key placed there keeps its public half;
|
||||
otherwise a new key is created.
|
||||
A seed at /var/lib/swarm-nats-callout/${name} is not read: the store holds the
|
||||
key, or a new one is created.
|
||||
'';
|
||||
removed = name: message: [
|
||||
(lib.mkRemovedOptionModule [ "services" "hyperhive" "deploy" "nats" name ] message)
|
||||
|
|
|
|||
Loading…
Reference in a new issue