let a second machine join the main node's k3s and run pods from images only the main node holds
This commit is contained in:
parent
c0cc44705f
commit
272af0b3e8
1 changed files with 1106 additions and 96 deletions
|
|
@ -1603,9 +1603,9 @@ let
|
|||
# One role, policy and login role per hive in the directory, each
|
||||
# naming only its own hive: the policy text in the unit is exactly the
|
||||
# `update` on its own role and `read` on its own two cache facts and its own
|
||||
# squid self-check credential, and each
|
||||
# squid self-check credential, and on the k3s join token every hive shares, and each
|
||||
# hive's block names neither the other's role nor its subject.
|
||||
name = "each hive's gateway-leaf identity may issue from its own role, read its own two cache facts, squid self-check credential and archive grants, and list those grants, and nothing else";
|
||||
name = "each hive's gateway-leaf identity may issue from its own role, read its own two cache facts, squid self-check credential and archive grants, list those grants, read the k3s join token, and nothing else";
|
||||
ok =
|
||||
let
|
||||
s = baoGrantTwoHives.systemd.services.swarm-bao-hive-leaf-policy.script;
|
||||
|
|
@ -1647,6 +1647,10 @@ let
|
|||
path = "secret/data/swarm/hives/h1/squid-selfcheck";
|
||||
caps = [ "read" ];
|
||||
}
|
||||
{
|
||||
path = "secret/data/swarm/services/k8s/agent-token";
|
||||
caps = [ "read" ];
|
||||
}
|
||||
{
|
||||
path = "secret/data/swarm/hives/h1/archive/*";
|
||||
caps = [ "read" ];
|
||||
|
|
@ -1671,6 +1675,10 @@ let
|
|||
path = "secret/data/swarm/hives/h2/squid-selfcheck";
|
||||
caps = [ "read" ];
|
||||
}
|
||||
{
|
||||
path = "secret/data/swarm/services/k8s/agent-token";
|
||||
caps = [ "read" ];
|
||||
}
|
||||
{
|
||||
path = "secret/data/swarm/hives/h2/archive/*";
|
||||
caps = [ "read" ];
|
||||
|
|
|
|||
Loading…
Reference in a new issue