the responders drop the unix-socket listener nothing uses since WP4/WP5
swarm-logs-auth and swarm-metrics-auth serve the TCP address --listen names and nothing else. Every unit of theirs runs as a pod, and the VM test that ran them on a socket takes --listen.
This commit is contained in:
parent
07a004fad1
commit
ba0df0ec82
1 changed files with 60 additions and 172 deletions
|
|
@ -56,7 +56,6 @@ let
|
|||
args ? [ ],
|
||||
env ? [ ],
|
||||
restartPolicy ? "Always",
|
||||
socketDir ? false,
|
||||
}:
|
||||
{
|
||||
apiVersion = "v1";
|
||||
|
|
@ -77,20 +76,8 @@ let
|
|||
// lib.optionalAttrs (restartPolicy == "Always") {
|
||||
readinessProbe = probe "/readyz";
|
||||
}
|
||||
// lib.optionalAttrs socketDir {
|
||||
volumeMounts = [
|
||||
{
|
||||
name = "sock";
|
||||
mountPath = "/sock";
|
||||
}
|
||||
];
|
||||
}
|
||||
)
|
||||
];
|
||||
volumes = lib.optional socketDir {
|
||||
name = "sock";
|
||||
emptyDir = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -98,22 +85,20 @@ let
|
|||
swarm-logs-auth = mkPod {
|
||||
name = "swarm-logs-auth";
|
||||
args = [
|
||||
"--socket=/sock/s.sock"
|
||||
"--listen=0.0.0.0:8081"
|
||||
"--surface=logs"
|
||||
"--health-addr=0.0.0.0:${toString healthPort}"
|
||||
];
|
||||
env = storeEnv;
|
||||
socketDir = true;
|
||||
};
|
||||
swarm-metrics-auth = mkPod {
|
||||
name = "swarm-metrics-auth";
|
||||
args = [
|
||||
"--socket=/sock/s.sock"
|
||||
"--listen=0.0.0.0:8081"
|
||||
"--store-path=swarm/stub"
|
||||
"--health-addr=0.0.0.0:${toString healthPort}"
|
||||
];
|
||||
env = storeEnv;
|
||||
socketDir = true;
|
||||
};
|
||||
swarm-notify-router = mkPod {
|
||||
name = "swarm-notify-router";
|
||||
|
|
|
|||
Loading…
Reference in a new issue