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
|
|
@ -925,7 +925,7 @@ let
|
|||
fromInit = name: bin: extraEnv: from: extraMounts: {
|
||||
inherit name securityContext;
|
||||
image = ref init;
|
||||
imagePullPolicy = "Never";
|
||||
imagePullPolicy = "IfNotPresent";
|
||||
command = [ "/bin/${bin}" ];
|
||||
env = lib.mapAttrsToList (n: v: {
|
||||
name = n;
|
||||
|
|
@ -990,7 +990,7 @@ let
|
|||
{
|
||||
name = "nats";
|
||||
image = ref server;
|
||||
imagePullPolicy = "Never";
|
||||
imagePullPolicy = "IfNotPresent";
|
||||
args = lib.tail (lib.splitString " " natsSystem.systemd.services.nats.serviceConfig.ExecStart);
|
||||
# The port the client Service targets.
|
||||
ports = [
|
||||
|
|
@ -1029,7 +1029,7 @@ let
|
|||
{
|
||||
name = "exporter";
|
||||
image = ref exporter;
|
||||
imagePullPolicy = "Never";
|
||||
imagePullPolicy = "IfNotPresent";
|
||||
args = [
|
||||
"-addr"
|
||||
"0.0.0.0"
|
||||
|
|
|
|||
Loading…
Reference in a new issue